Module: wine Branch: master Commit: 5c08a14cdd7a8d7549f4acb1c163214ec81d6b2e URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c08a14cdd7a8d7549f4acb1c1...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Jun 10 11:42:00 2007 +0200
mshtml: Improve IDM_JUSTIFYLEFT query status.
---
dlls/mshtml/editor.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c index 9b68c32..03cc546 100644 --- a/dlls/mshtml/editor.c +++ b/dlls/mshtml/editor.c @@ -738,7 +738,11 @@ static HRESULT query_justify(HTMLDocument *This, OLECMD *cmd) break; case IDM_JUSTIFYLEFT: TRACE("(%p) IDM_JUSTIFYLEFT\n", This); - cmd->cmdf = query_align_status(This, NSALIGN_LEFT); + /* FIXME: We should set OLECMDF_LATCHED only if it's set explicitly. */ + if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE) + cmd->cmdf = OLECMDF_SUPPORTED; + else + cmd->cmdf = OLECMDF_SUPPORTED | OLECMDF_ENABLED; break; case IDM_JUSTIFYRIGHT: TRACE("(%p) IDM_JUSTIFYRIGHT\n", This);