oox: fix crash in lcl_GetGluePointId
See https://crashreport.libreoffice.org/stats/signature/static%20long%20oox::drawingml::lcl_GetGluePointId(const%20class%20com::sun::star::uno::Reference%3Ccom::sun::star::drawing::XShape%3E%20&%20const,%20long)
Regression from b7c542b508
"tdf#154363 sd: fix line connectors regression of mirrored shapes"
Change-Id: I926d32f5b68582df588c28a800b0ec10e7e3e19f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154021
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -1675,7 +1675,8 @@ static sal_Int32 lcl_GetGluePointId(const Reference<XShape>& xShape, sal_Int32 n
|
||||
bool bFlipH = false;
|
||||
bool bFlipV = false;
|
||||
Reference<XPropertySet> xShapeProps(xShape, UNO_QUERY);
|
||||
if (xShapeProps->getPropertySetInfo()->hasPropertyByName("CustomShapeGeometry"))
|
||||
if (xShapeProps.is() && xShapeProps->getPropertySetInfo()
|
||||
&& xShapeProps->getPropertySetInfo()->hasPropertyByName("CustomShapeGeometry"))
|
||||
{
|
||||
Sequence<PropertyValue> aGeometrySeq;
|
||||
xShapeProps->getPropertyValue("CustomShapeGeometry") >>= aGeometrySeq;
|
||||
|
||||
Reference in New Issue
Block a user