Commit 5c08a14c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Improve IDM_JUSTIFYLEFT query status.

parent ef93de16
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment