[Libreoffice-commits] core.git: sw/source

Seth Chaiklin (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 21 07:51:11 UTC 2020


 sw/source/uibase/shells/textfld.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b4bcee02229fbb382c6b2d774caba54d43b58697
Author:     Seth Chaiklin <sdc.blanco at youmail.dk>
AuthorDate: Tue Oct 20 21:52:06 2020 +0200
Commit:     Seth Chaiklin <sdc.blanco at youmail.dk>
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 <sdc.blanco at youmail.dk>
    Reviewed-by: Heiko Tietze <heiko.tietze at documentfoundation.org>

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;
 


More information about the Libreoffice-commits mailing list