diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2019-11-09 13:11:03 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2019-11-09 13:02:22 +0100 |
commit | 24f8537bf8af516e5cb143126e1d3a089041d60a (patch) | |
tree | 14dfcc49af4593d3f70a1242f8da9d9a5425c2b1 | |
parent | 896b1b0841a7b8c1ba37812db4a2b60c5b84f968 (diff) |
Don't call setPropertyValue with empty value
Change-Id: I3dd2525e5649cf71b47c2733db4d121625b33342
Reviewed-on: https://gerrit.libreoffice.org/82347
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r-- | chart2/source/view/main/ShapeFactory.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index 28f981635529..bc358243e2b0 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -2163,11 +2163,15 @@ 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& e ) { - SAL_WARN("chart2", "Exception caught. " << e ); + SAL_WARN("chart2", "Exception caught. " << e.Message ); } } return xShape; |