From c135e0d8827ee1cc727fcd803497e9cf87f640d3 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 10 Jun 2007 11:48:36 +0200 Subject: [PATCH] mshtml: Call update_doc in init_editor. --- dlls/mshtml/editor.c | 2 ++ dlls/mshtml/tests/htmldoc.c | 1 + 2 files changed, 3 insertions(+) diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c index 8b1c0f9372..9c59daea23 100644 --- a/dlls/mshtml/editor.c +++ b/dlls/mshtml/editor.c @@ -973,6 +973,8 @@ const cmdtable_t editmode_cmds[] = { void init_editor(HTMLDocument *This) { + update_doc(This, UPDATE_UI); + if(!This->nscontainer) return; diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index fbffcbe3a2..52053ae852 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -3331,6 +3331,7 @@ static void test_editing_mode(void) test_exec_editmode(unk); test_MSHTML_QueryStatus(unk, OLECMDF_SUPPORTED); test_download(TRUE, FALSE); + test_timer(EXPECT_UPDATEUI); test_MSHTML_QueryStatus(unk, OLECMDF_SUPPORTED|OLECMDF_ENABLED); test_exec_fontname(unk, NULL, wszTimesNewRoman);