diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 12:31:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 15:28:37 +0200 |
commit | eedced0d5654bbbcd7c3f19cc272ed1112c81f74 (patch) | |
tree | 1118cd2172ae263532ca24d43865bb0964ff3a25 | |
parent | ca4dede186183ca760013ad1885947d68bae02f4 (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/55619
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx | 4 |
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 7dc9488a8e61..79738a04389d 100644 --- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx @@ -1095,12 +1095,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; } |