summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@collabora.com>2024-08-07 16:55:42 +0300
committerMiklos Vajna <vmiklos@collabora.com>2024-08-08 14:03:49 +0200
commit8b00f3a3c507a90046062d38e3f62c46675d620f (patch)
treef1f99183d5f001f24c442ce5cbb6bcf0212287e8 /svx
parent7d34d4944c962ad69e7d05a57c1548ef5ac7be42 (diff)
Add SdrModel "IsImpress" function.
Functionalities like "SetMarkHandlesForLOKit" can now use this to send data selectively. Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I8d300d1d6fe0d953f4798ec3ee0c48e258054335 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171597 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 0d409f609f49..1c78c9dab9e9 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1218,7 +1218,8 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const S
}
SdrPage *pPage = pPageView ? pPageView->GetPage(): nullptr;
- if (pPage)
+
+ if (pPage && getSdrModelFromSdrView().IsImpress())
{
// Send all objects' rectangles along with the selected object's information.
// Other rectangles can be used for aligning the selected object referencing the others.