summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/view/main/ShapeFactory.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx
index bf8de1628401..d9ccc32000d6 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -2225,15 +2225,18 @@ uno::Reference< drawing::XShape >
//set whole text shape properties
PropertyMapper::setMultiProperties( rPropNames, rPropValues, xProp );
- //set position matrix
- //the matrix needs to be set at the end behind autogrow and such position influencing properties
- try
- {
- xProp->setPropertyValue( "Transformation", rATransformation );
- }
- catch( const uno::Exception& e )
+ if (rATransformation.hasValue())
{
- ASSERT_EXCEPTION( e );
+ //set position matrix
+ //the matrix needs to be set at the end behind autogrow and such position influencing properties
+ try
+ {
+ xProp->setPropertyValue( "Transformation", rATransformation );
+ }
+ catch( const uno::Exception& e )
+ {
+ ASSERT_EXCEPTION( e );
+ }
}
}
return xShape;