summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-21 15:12:10 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-26 10:06:59 +0200
commit92a9c03e5100952dd364e38366ec0f80999cbc43 (patch)
tree2dee8010be8b449e1bfc64b5f3fb5e811983e7e1 /svx
parent3224c2ad9ee16d3d437aa30cff68d6016a25549d (diff)
tdf#91095 svx: avoid unconditional SdrObject -> SdrObjCustomShape static_cast
Change-Id: I5ed86633e909c13f14ee382b4d9ec8f9c264df1d (cherry picked from commit 23cba1f55f1937c27c2a1bc27f9d3fd7b1ef1b47)
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeEngine.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index 2beb70f1a3e8..c78641fcb78e 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