summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 12:49:12 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 17:06:45 +0200
commit12c76a4fa169ee2362e79ea19284ed132eac9084 (patch)
tree12dd6df199521e390ba6dad065c5cf9c0a1bf828 /sc/source/ui/drawfunc
parentbe76f48d602e5d0a1091973b2df7f20cb7f1a545 (diff)
GetMarkedObjectCount() -> GetMarkedObjectList().GetMarkCount()
In order to reduce number of calls to GetMarkedObjectList() later on Change-Id: Id94f66545950f0fdf124ba7b985a5215a01d63fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168213 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx4
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index c2fe632c3bd5..e4edfd455f4f 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -506,7 +506,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
case SID_RENAME_OBJECT:
{
- if(1 == pView->GetMarkedObjectCount())
+ if(1 == pView->GetMarkedObjectList().GetMarkCount())
{
// #i68101#
SdrObject* pSelected = pView->GetMarkedObjectByIndex(0);
@@ -580,7 +580,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
// #i68101#
case SID_TITLE_DESCRIPTION_OBJECT:
{
- if(1 == pView->GetMarkedObjectCount())
+ if(1 == pView->GetMarkedObjectList().GetMarkCount())
{
SdrObject* pSelected = pView->GetMarkedObjectByIndex(0);
assert(pSelected && "ScDrawShell::ExecDrawFunc: nMarkCount, but no object (!)");
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 9b51a62c5b2a..1152eaf10024 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -129,7 +129,7 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
// #i123922# check if an existing object is selected; if yes, evtl. replace
// the graphic for a SdrGraphObj (including link state updates) or adapt the fill
// style for other objects
- if(pDrawView && 1 == pDrawView->GetMarkedObjectCount())
+ if(pDrawView && 1 == pDrawView->GetMarkedObjectList().GetMarkCount())
{
SdrObject* pPickObj = pDrawView->GetMarkedObjectByIndex(0);