summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsa.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 13:49:41 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-30 08:44:37 +0200
commit322a6ca8f912513f69747a68fe5497ee6b643293 (patch)
tree21c616c42d9596e535ae8ed3e757b6ccfb38f42c /sd/source/ui/view/drviewsa.cxx
parent2d362fab91fb70fbe7026c1e96452fe06fa5736e (diff)
AreObjectsMarked -> GetMarkedObjectList().GetMarkCount() != 0
In order to reduce number of calls to GetMarkedObjectList() later on Change-Id: Ib2eb7c88338e64744f886a338acca65f782f8170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168218 Tested-by: Jenkins Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd/source/ui/view/drviewsa.cxx')
-rw-r--r--sd/source/ui/view/drviewsa.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 2b43362f3a98..bf0b4023014a 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -650,7 +650,7 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet)
}
else
{
- if ( mpDrawView->AreObjectsMarked() )
+ if ( mpDrawView->GetMarkedObjectList().GetMarkCount() != 0 )
{
::tools::Rectangle aRect = mpDrawView->GetAllMarkedRect();
pPageView->LogicToPagePos(aRect);