sw/source/uibase/shells/textfld.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b4bcee02229fbb382c6b2d774caba54d43b58697 Author: Seth Chaiklin <[email protected]> AuthorDate: Tue Oct 20 21:52:06 2020 +0200 Commit: Seth Chaiklin <[email protected]> CommitDate: Wed Oct 21 09:50:33 2020 +0200 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 <[email protected]> Reviewed-by: Heiko Tietze <[email protected]> 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
