From 322a6ca8f912513f69747a68fe5497ee6b643293 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 29 May 2024 13:49:41 +0200 Subject: 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 Reviewed-by: Xisco Fauli --- sw/source/uibase/shells/drwtxtsh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/uibase/shells/drwtxtsh.cxx') diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index eccfa7936f2c..784ff5b82804 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -449,7 +449,7 @@ void SwDrawTextShell::ExecDraw(SfxRequest &rReq) { if (nResult == RET_OK) { - if (m_pSdrView->AreObjectsMarked()) + if (m_pSdrView->GetMarkedObjectList().GetMarkCount() != 0) { m_pSdrView->SetAttributes(*pDlg->GetOutputItemSet()); xRequest->Done(*(pDlg->GetOutputItemSet())); @@ -465,7 +465,7 @@ void SwDrawTextShell::ExecDraw(SfxRequest &rReq) case SID_TABLE_VERT_BOTTOM: { sal_uInt16 nSId = rReq.GetSlot(); - if (m_pSdrView->AreObjectsMarked()) + if (m_pSdrView->GetMarkedObjectList().GetMarkCount() != 0) { SdrTextVertAdjust eTVA = SDRTEXTVERTADJUST_TOP; if (nSId == SID_TABLE_VERT_CENTER) -- cgit