diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 10:19:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 16:19:28 +0200 |
commit | 6944f42bbbf555a6aa23fe9f37439a803762d4ce (patch) | |
tree | 7f51481eeb000315103d3ea67e5514cbada45600 /sd | |
parent | 8ccd9fb5baddc9734be64861a00c1efad42e178e (diff) |
cid#1424266 Uncaught exception
Change-Id: I5e7373dbaef52184327596d029ab63baf57764d9
Reviewed-on: https://gerrit.libreoffice.org/75844
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx index 8b36fbb7604e..e544b75eba10 100644 --- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx +++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx @@ -333,7 +333,7 @@ bool SlideSorterController::Command ( else aPopupId = "pagepanenoselmaster"; - std::unique_ptr<InsertionIndicatorHandler::ForceShowContext> pContext; + std::unique_ptr<InsertionIndicatorHandler::ForceShowContext, o3tl::default_delete<InsertionIndicatorHandler::ForceShowContext>> xContext; if (pPage == nullptr) { // When there is no selection, then we show the insertion @@ -344,7 +344,7 @@ bool SlideSorterController::Command ( mpInsertionIndicatorHandler->UpdatePosition( pWindow->PixelToLogic(rEvent.GetMousePosPixel()), InsertionIndicatorHandler::MoveMode); - pContext.reset(new InsertionIndicatorHandler::ForceShowContext( + xContext.reset(new InsertionIndicatorHandler::ForceShowContext( mpInsertionIndicatorHandler)); } @@ -389,7 +389,7 @@ bool SlideSorterController::Command ( GetSelectionManager()->SetInsertionPosition( GetInsertionIndicatorHandler()->GetInsertionPageIndex()); } - pContext.reset(); + xContext.reset(); bEventHasBeenHandled = true; } break; |