sw/source/uibase/utlui/content.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 8586dd0d0fdea5ebe9f70173c91c864f2c82dd55 Author: Jim Raykowski <[email protected]> AuthorDate: Sat Feb 28 20:35:27 2026 -0900 Commit: Jim Raykowski <[email protected]> CommitDate: Mon Mar 2 03:17:45 2026 +0100 SwNavigator: Improve bring drawing objects to attention Makes the position of the attention overlay rectangle correct for drawing objects having rotation angle and/or shear set. Change-Id: Ic82c83d0ad71d77d9ace1666a153b2cc57e98a8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200693 Tested-by: Jenkins Reviewed-by: Jim Raykowski <[email protected]> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index c98ceb334ed9..1b3a6faaefe9 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -8264,9 +8264,9 @@ void SwContentTree::BringDrawingObjectsToAttention(std::vector<const SdrObject*> { if (pObject) { - tools::Rectangle aRect(pObject->GetLogicRect()); - if (!aRect.IsEmpty()) - aRanges.emplace_back(aRect.Left(), aRect.Top(), aRect.Right(), aRect.Bottom()); + const tools::Rectangle& rRect = pObject->GetSnapRect(); + if (!rRect.IsEmpty()) + aRanges.emplace_back(rRect.Left(), rRect.Top(), rRect.Right(), rRect.Bottom()); } } OverlayObject(std::move(aRanges));
