diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-03-09 19:59:24 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-03-13 00:12:30 +0100 |
commit | ab4cffecd614d9443af5f9763d83add29178ade0 (patch) | |
tree | 40cda82cd0ec299a50fc477b1fca954e46e9e886 /sw/source/uibase | |
parent | e2d25709fd5f31849ed9db3d51811ddb44c8e5cc (diff) |
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 <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |