diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-21 15:12:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-09 10:32:15 +0000 |
commit | 9d816d79cae3526c2da5f038b4b285f7cf00b762 (patch) | |
tree | 8771c5eb2ddf3127ddb6ce5ac3ad9c4eed91e741 /svx | |
parent | c6427d1d5fe398967801ae5f5cd5888afa2a8b14 (diff) |
tdf#91095 svx: avoid unconditional SdrObject -> SdrObjCustomShape static_cast
Change-Id: I5ed86633e909c13f14ee382b4d9ec8f9c264df1d
(cherry picked from commit 23cba1f55f1937c27c2a1bc27f9d3fd7b1ef1b47)
Reviewed-on: https://gerrit.libreoffice.org/16178
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeEngine.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx index 2d26c302260a..f10eb61d85c1 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 |