summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShape3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShape3d.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape3d.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx
index 468a1c66fa93..e543f490ca8a 100644
--- a/svx/source/customshapes/EnhancedCustomShape3d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx
@@ -332,8 +332,17 @@ rtl::Reference<SdrObject> EnhancedCustomShape3d::Create3DObject(
drawing::ProjectionMode eProjectionMode( drawing::ProjectionMode_PARALLEL );
const Any* pAny = rGeometryItem.GetPropertyValueByName( "Extrusion", "ProjectionMode" );
- if ( pAny )
- *pAny >>= eProjectionMode;
+ if (pAny)
+ {
+ if(!(*pAny >>= eProjectionMode))
+ {
+ sal_Int32 nEnum = 0;
+ if(*pAny >>= nEnum)
+ {
+ eProjectionMode = static_cast<drawing::ProjectionMode>(nEnum);
+ }
+ }
+ }
// pShape2d Convert in scenes which include 3D Objects
E3dDefaultAttributes a3DDefaultAttr;
a3DDefaultAttr.SetDefaultLatheCharacterMode( true );