diff options
author | Seth Chaiklin <sdc.blanco@youmail.dk> | 2020-10-20 21:52:06 +0200 |
---|---|---|
committer | Seth Chaiklin <sdc.blanco@youmail.dk> | 2020-10-21 09:50:33 +0200 |
commit | b4bcee02229fbb382c6b2d774caba54d43b58697 (patch) | |
tree | 08103e468fdfb65feabd880bf6f956cc62df011a /sw/source/uibase | |
parent | c7a4646177addc67669bab98ab471ea0c1cd2430 (diff) |
tdf#137568 grey-out Format - Comments in menu, when no comments
Change-Id: Ieaec67ee057235d1aa9a81106ca75042e190e0e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104507
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/source/uibase')
-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; |