summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-11-09 13:11:03 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-11-09 13:02:34 +0100
commitcb413b1de64dfaddf38f347b2f53d28f3c8246c6 (patch)
tree062ea02de97c6951bd135fcaf960e27cab5be39b /chart2
parent231f95cdfde28d419721e117e2a92570e8fc771c (diff)
Don't call setPropertyValue with empty value
Change-Id: I3dd2525e5649cf71b47c2733db4d121625b33342 Reviewed-on: https://gerrit.libreoffice.org/82348 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'chart2')
-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& )
{