summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-11 13:18:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-12 08:48:48 +0200
commit4926b0f348dd1ddf170fe41df0cde4d426ab3b5f (patch)
tree4b85b267273b47384259585733139d3be14aea0c
parent9c6880bb0771fe2cd6523a4d2488c403e5480163 (diff)
tdf#119793 Crash on redo of rectangle movement and text
regression from commit be48eb2e82a3d8891ee84145567e2b89884f1fd6 return std::unique_ptr from SdrMakeOutliner Change-Id: Iec4421558ed29121973c87b9363da0303f71e203 Reviewed-on: https://gerrit.libreoffice.org/60317 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sc/source/ui/drawfunc/futext.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx
index 7c86db1ab53e..0b9ba8048149 100644
--- a/sc/source/ui/drawfunc/futext.cxx
+++ b/sc/source/ui/drawfunc/futext.cxx
@@ -197,11 +197,11 @@ bool FuText::MouseButtonDown(const MouseEvent& rMEvt)
pO->SetVertical( bVertical );
//!?? the default values are not correct when result is without outliner ???!?
- auto pUndoManager = &pO->GetUndoManager();
+ auto pOTemp = pO.get();
if ( pView->SdrBeginTextEdit(pObj, pPV, pWindow, true, pO.release()) )
{
// subscribe EditEngine-UndoManager
- rViewShell.SetDrawTextUndo( pUndoManager );
+ rViewShell.SetDrawTextUndo( &pOTemp->GetUndoManager() );
OutlinerView* pOLV = pView->GetTextEditOutlinerView();
if ( pOLV->MouseButtonDown(rMEvt) )
@@ -592,7 +592,7 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel,
pO->SetVertical( bVertical );
//!?? without returned Outliner the defaults are not correct ???!?
- auto pUndoManager = &pO->GetUndoManager();
+ auto pOTemp = pO.get();
if ( pView->SdrBeginTextEdit(pObj, pPV, pWindow, true, pO.release()) )
{
// Toggle out of paste mode if we are in it, otherwise
@@ -602,7 +602,7 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel,
rViewShell.UpdateCopySourceOverlay();
// EditEngine-UndoManager anmelden
- rViewShell.SetDrawTextUndo( pUndoManager );
+ rViewShell.SetDrawTextUndo( &pOTemp->GetUndoManager() );
pView->SetEditMode();