summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-01-24 16:42:48 +0100
committerMichael Meeks <michael.meeks@collabora.com>2020-01-25 14:51:10 +0100
commit109df7755b505ffe9b089fc5943e56c716368297 (patch)
treec3c78dc225b90b3d8d2e9cc1fe02f0fd0b3de293 /svx
parentc4b78d40aa43adeb90087c190d9fbee6a6d073ec (diff)
lok: create marking overlay object, but add no objects to it
null mpMarkObjOverlay was used for a number of other reasons. Change-Id: I0681d9c544f0cd3f93e991eb048b97bd58f94787 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87349 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 90dc167c64f9..bd19e90cfc5c 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -96,6 +96,9 @@ ImplMarkingOverlay::ImplMarkingOverlay(const SdrPaintView& rView, const basegfx:
: maSecondPosition(rStartPos),
mbUnmarking(bUnmarking)
{
+ if (comphelper::LibreOfficeKit::isActive())
+ return; // We do client-side object manipulation with the Kit API
+
for(sal_uInt32 a(0); a < rView.PaintWindowCount(); a++)
{
SdrPaintWindow* pCandidate = rView.GetPaintWindow(a);
@@ -359,12 +362,8 @@ void SdrMarkView::BegMarkObj(const Point& rPnt, bool bUnmark)
DBG_ASSERT(nullptr == mpMarkObjOverlay, "SdrMarkView::BegMarkObj: There exists a mpMarkObjOverlay (!)");
- // We do client-side object manipulation with the Kit API
- if (!comphelper::LibreOfficeKit::isActive())
- {
- basegfx::B2DPoint aStartPos(rPnt.X(), rPnt.Y());
- mpMarkObjOverlay = new ImplMarkingOverlay(*this, aStartPos, bUnmark);
- }
+ basegfx::B2DPoint aStartPos(rPnt.X(), rPnt.Y());
+ mpMarkObjOverlay = new ImplMarkingOverlay(*this, aStartPos, bUnmark);
maDragStat.Reset(rPnt);
maDragStat.NextPoint();