summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 09:55:45 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-30 10:15:46 +0100
commitac0df3fa4fc3d69dd8cf0f7fce64050a14b94b15 (patch)
treea5c2889fb26c51283702c7428bc8a2a3efa7deb1 /svx
parent19e715973e15f9e7cf6e8237643dbbc14f8eb87a (diff)
fix use-after-move
after commit 50c63e5c2f7962e8893e2d04b0e958209432f4c9 pass OutlinerParaObject around by std::unique_ptr spotted by Mike Kaganski Change-Id: Id69aafc8b0a0fb06165e3fc0cc6e6a29108b4d1f Reviewed-on: https://gerrit.libreoffice.org/62540 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/cell.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index bbddd24b76fa..8eba9c1b4cd8 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -806,10 +806,11 @@ SdrTextHorzAdjust Cell::GetTextHorizontalAdjust() const
void Cell::SetOutlinerParaObject( std::unique_ptr<OutlinerParaObject> pTextObject )
{
+ bool bNullTextObject = pTextObject == nullptr;
SdrText::SetOutlinerParaObject( std::move(pTextObject) );
maSelection.nStartPara = EE_PARA_MAX_COUNT;
- if( pTextObject == nullptr )
+ if( bNullTextObject )
ForceOutlinerParaObject( OutlinerMode::TextObject );
}