[Libreoffice-bugs] [Bug 137568] Enhancement: Format - Comments... should be greyed out when there are no comments
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 20 11:25:06 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=137568
--- Comment #5 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
(In reply to sdc.blanco from comment #4)
> Can you give me some code pointers? Thanks.
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -803,6 +803,8 @@ void SwTextShell::StateField( SfxItemSet &rSet )
rSet.InvalidateItem( FN_DELETE_COMMENT );
rSet.InvalidateItem( FN_HIDE_NOTE );
}
+ if (!pPostItMgr->HasNotes())
+ rSet.DisableItem( FN_FORMAT_ALL_NOTES );
}
break;
(Please double check the logic)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201020/e30a6dc7/attachment.htm>
More information about the Libreoffice-bugs
mailing list