summaryrefslogtreecommitdiff
path: root/forms/source/richtext/attributedispatcher.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/richtext/attributedispatcher.cxx')
-rw-r--r--forms/source/richtext/attributedispatcher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/richtext/attributedispatcher.cxx b/forms/source/richtext/attributedispatcher.cxx
index e6493b92519d..971d66a43b6c 100644
--- a/forms/source/richtext/attributedispatcher.cxx
+++ b/forms/source/richtext/attributedispatcher.cxx
@@ -68,7 +68,7 @@ namespace frm
FeatureStateEvent OAttributeDispatcher::buildStatusEvent() const
{
FeatureStateEvent aEvent( ORichTextFeatureDispatcher::buildStatusEvent() );
- aEvent.IsEnabled = getEditView() ? !getEditView()->IsReadOnly() : sal_False;
+ aEvent.IsEnabled = getEditView() && !getEditView()->IsReadOnly();
AttributeState aState;
if ( m_pMasterDispatcher )