summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/view/main/ShapeFactory.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx
index 3bcd72ff2904..f6219c650151 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -2154,7 +2154,11 @@ uno::Reference< drawing::XShape >
//the matrix needs to be set at the end behind autogrow and such position influencing properties
try
{
- xProp->setPropertyValue( "Transformation", rATransformation );
+ if (rATransformation.hasValue())
+ xProp->setPropertyValue( "Transformation", rATransformation );
+ else
+ SAL_INFO("chart2", "No rATransformation value is given to ShapeFactory::createText()");
+
}
catch( const uno::Exception& )
{