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-10 10:21:06 +0200 |
commit | 7349be91bc02d68bd005e3bc037df8861f6bf048 (patch) | |
tree | af6bc28abd96ef38e25209119e559c07e6ac31a3 /oox/source | |
parent | dfc5d584e6635e9d28c15b6572588b17e07b972f (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)
Diffstat (limited to 'oox/source')
-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 da51c573785a..320f4a5c1287 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -519,6 +519,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 ) ); } |