sw/source/uibase/docvw/PostItMgr.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit ab4cffecd614d9443af5f9763d83add29178ade0 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Mar 9 19:59:24 2022 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Sun Mar 13 00:12:30 2022 +0100 SwNavigator: make resolved comments visible on Edit... if needed Current behavior of comments members context menu item Edit..., when both unresolved and resolved comments visibility options are off, is all unresolved comments show before the cursor is placed in the comment annotation window of the entry in the comments member list which Edit... was selected. If the comment selected to edit is resolved the cursor ends up in limbo. This fix makes resolved comments visible on edit if needed. Change-Id: Idf016493c70a150273fe558e4967284472684db3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131292 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 9c1963ea6108..56daa35f786a 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -519,6 +519,12 @@ void SwPostItMgr::Focus(const SfxBroadcaster& rBC) { if (postItField->mpPostIt) { + if (postItField->mpPostIt->IsResolved() && + !mpWrtShell->GetViewOptions()->IsResolvedPostIts()) + { + SfxRequest aRequest(mpView->GetViewFrame(), SID_TOGGLE_RESOLVED_NOTES); + mpView->ExecViewOptions(aRequest); + } postItField->mpPostIt->GrabFocus(); MakeVisible(postItField->mpPostIt); }