summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
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-28 22:39:46 +0100
commit9a65f2086082cbb35016b7b83e008f7b5cc3cd54 (patch)
treecadc0522fc06db335f6d1ddf45c8d5106de2e304 /svx/source/svdraw
parent44690b5548eb2b9c122a9ec282456ca95b605022 (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/+/87409 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'svx/source/svdraw')
-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 bcc048b8a788..acba9103244a 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);
@@ -358,12 +361,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();