diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-05 10:33:02 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-20 13:49:41 +0200 |
commit | eb20fd85ddd25026a1b814d75fac6b5aa4ec0ef7 (patch) | |
tree | f340600627c0b192fe68fcac5975b9935cdcaae1 /oox | |
parent | d6dda0acb8bb6ca0fba607e1d566fca960b78cf8 (diff) |
coverity#1438224 Dereference null return value
Change-Id: I794c54867b83d738a075f9fa0dbd31fe62de49b9
Reviewed-on: https://gerrit.libreoffice.org/58610
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit e5c3b913cc5b656710677e3597079e0cd5040f82)
Reviewed-on: https://gerrit.libreoffice.org/58842
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 5483dcc06ff1..984b159e3dfa 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -521,6 +521,7 @@ static inline void lcl_createPresetShape( uno::Reference<drawing::XShape>& xShap eAdjust = pParagraph->getProperties().getParaAdjust().get(); xSet->setPropertyValue( "ParaAdjust", uno::makeAny( eAdjust ) ); SvxShape* pShape = SvxShape::getImplementation( xShape ); + assert(pShape); SdrTextHorzAdjust eHorzAdjust = lcl_convertAdjust( eAdjust ); pShape->GetSdrObject()->SetMergedItem( SdrTextHorzAdjustItem( eHorzAdjust ) ); } |