summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 13:09:02 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 17:07:38 +0200
commitda95e7ae392368ca414be5c62a08879221cb71e9 (patch)
tree8d324e99131211955fd6da61d22c4455c4f0c26e /reportdesign
parentf527bc48fc5c8812f6bc22ce10d7131d64e096ef (diff)
SortMarkedObjects() -> GetMarkedObjectList().ForceSort()
In order to reduce number of calls to GetMarkedObjectList() later on Change-Id: Ia74949a47308f95607881a7d44c8c26404902745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168217 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index d5e7d7b8c930..7c79896e82e0 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -627,7 +627,7 @@ void OViewsWindow::collectRectangles(TRectangleMap& _rSortRectangles)
OSectionView& rView = rxSection->getReportSection().getSectionView();
if ( rView.AreObjectsMarked() )
{
- rView.SortMarkedObjects();
+ rView.GetMarkedObjectList().ForceSort();
const size_t nCount = rView.GetMarkedObjectList().GetMarkCount();
for (size_t i=0; i < nCount; ++i)
{