diff options
-rw-r--r-- | sw/source/uibase/shells/textfld.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index fd9c5a457565..ff104e8544d7 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -803,6 +803,9 @@ void SwTextShell::StateField( SfxItemSet &rSet ) rSet.InvalidateItem( FN_DELETE_COMMENT ); rSet.InvalidateItem( FN_HIDE_NOTE ); } + // tdf#137568 do not offer comment formating, if no comments are present + if ( !pPostItMgr->HasNotes() ) + rSet.DisableItem( FN_FORMAT_ALL_NOTES ); } break; |