mshtml: Call set_ns_editmode in better place.

This commit is contained in:
Jacek Caban 2009-08-02 00:12:29 +02:00 committed by Alexandre Julliard
parent 77ff2df83a
commit 8809bef428
1 changed files with 7 additions and 5 deletions

View File

@ -583,9 +583,6 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
debugstr_w(hostinfo.pchHostCss), debugstr_w(hostinfo.pchHostNS));
}
if(This->nscontainer)
set_ns_editmode(This->nscontainer);
update_doc(This, UPDATE_UI);
if(This->mon) {
@ -610,12 +607,17 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
return hres;
if(This->ui_active) {
RECT rcBorderWidths;
if(This->ip_window)
call_set_active_object(This->ip_window, NULL);
if(This->hostui)
IDocHostUIHandler_HideUI(This->hostui);
}
if(This->nscontainer)
set_ns_editmode(This->nscontainer);
if(This->ui_active) {
RECT rcBorderWidths;
if(This->hostui)
IDocHostUIHandler_ShowUI(This->hostui, DOCHOSTUITYPE_AUTHOR, ACTOBJ(This), CMDTARGET(This),