summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@collabora.com>2024-08-07 16:55:42 +0300
committerGökay ŞATIR <gokaysatir@collabora.com>2024-09-04 16:47:20 +0200
commit558b1a9155dc6918a0731277330e27c2f72b7b13 (patch)
tree6238b77512ae1900568ef4941a84461ac669c0a8 /svx/source
parent0a89d65e6bb7be293c1a7b4615a08292701694dc (diff)
Add SdrModel "IsImpress" function.
Functionalities like "SetMarkHandlesForLOKit" can now use this to send data selectively. Change-Id: I8d300d1d6fe0d953f4798ec3ee0c48e258054335 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172854 Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-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 45c8072038bc..8526e7e51f17 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1223,7 +1223,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.