summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-11 12:31:08 +0100
committerAndras Timar <andras.timar@collabora.com>2018-06-27 06:40:28 +0200
commit26455f2032df43686a90a8b95d8814663194a997 (patch)
treec7ebc6d3d4dff4512d37124fd8c5ac72a265954a /sd
parente3305ad790274e312821e90c1f61a1efe92fd8f9 (diff)
tdf#118068 InsertionIndicator should be temporary
its original use is during a drag/drop operation so its expected to be in use just for a temporary scope, so End after Start Change-Id: I3efdc4079ef7e1466b49e027fed0698715b5fd58 Reviewed-on: https://gerrit.libreoffice.org/55621 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit ace56ae7e6d943fa8b2a72dc97f7abfc812aa35e)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index b299f00ed748..7dd38464e582 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -1098,12 +1098,16 @@ bool NormalModeHandler::ProcessButtonDownEvent (
pInsertionIndicatorHandler->UpdatePosition(
rDescriptor.maMousePosition,
InsertionIndicatorHandler::MoveMode);
+
mrSlideSorter.GetController().GetSelectionManager()->SetInsertionPosition(
pInsertionIndicatorHandler->GetInsertionPageIndex());
mrSlideSorter.GetViewShell()->GetDispatcher()->Execute(
SID_INSERTPAGE,
SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
+
+ pInsertionIndicatorHandler->End(Animator::AM_Immediate);
+
break;
}