Kaydet (Commit) 23cba1f5 authored tarafından Miklos Vajna's avatar Miklos Vajna

tdf#91095 svx: avoid unconditional SdrObject -> SdrObjCustomShape static_cast

Change-Id: I5ed86633e909c13f14ee382b4d9ec8f9c264df1d
üst ce7d80c6
...@@ -273,7 +273,7 @@ Reference< drawing::XShape > SAL_CALL EnhancedCustomShapeEngine::render() ...@@ -273,7 +273,7 @@ Reference< drawing::XShape > SAL_CALL EnhancedCustomShapeEngine::render()
throw ( RuntimeException, std::exception ) throw ( RuntimeException, std::exception )
{ {
Reference< drawing::XShape > xShape; Reference< drawing::XShape > xShape;
SdrObject* pSdrObjCustomShape( GetSdrObjectFromXShape( mxShape ) ); SdrObject* pSdrObjCustomShape( PTR_CAST( SdrObjCustomShape, GetSdrObjectFromXShape( mxShape ) ) );
if ( pSdrObjCustomShape ) if ( pSdrObjCustomShape )
{ {
// retrieving the TextPath property to check if feature is enabled // retrieving the TextPath property to check if feature is enabled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment