[Libreoffice-commits] core.git: svx/source

Miklos Vajna vmiklos at collabora.co.uk
Thu May 21 07:25:41 PDT 2015


 svx/source/customshapes/EnhancedCustomShapeEngine.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 23cba1f55f1937c27c2a1bc27f9d3fd7b1ef1b47
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu May 21 15:12:10 2015 +0100

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

diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index 2beb70f..c78641f 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -273,7 +273,7 @@ Reference< drawing::XShape > SAL_CALL EnhancedCustomShapeEngine::render()
     throw ( RuntimeException, std::exception )
 {
     Reference< drawing::XShape > xShape;
-    SdrObject* pSdrObjCustomShape( GetSdrObjectFromXShape( mxShape ) );
+    SdrObject* pSdrObjCustomShape( PTR_CAST( SdrObjCustomShape, GetSdrObjectFromXShape( mxShape ) ) );
     if ( pSdrObjCustomShape )
     {
         // retrieving the TextPath property to check if feature is enabled


More information about the Libreoffice-commits mailing list