summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-12-19 23:29:07 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2014-12-19 23:35:17 +0100
commitbe2aa71a2caba12c7e2e0fc03cba30c6f6d81619 (patch)
treeb4fc5c218c7a21e51fd09dad2ecb594494efd829 /xmloff
parent0685b2e73e48adb84cd01355d45551ab478ebcd5 (diff)
survive "TextBox" having no value
Change-Id: Iebed41cfcc5899387e3defb8d8a0792276349098
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 5276afb81bd6..f8d417c7dc3d 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -358,7 +358,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
}
}
- if (aParentName.isEmpty() && xPropertySetInfo->hasPropertyByName("TextBox") && xPropSet->getPropertyValue("TextBox").get<bool>())
+ if (aParentName.isEmpty() && xPropertySetInfo->hasPropertyByName("TextBox") && xPropSet->getPropertyValue("TextBox").hasValue() && xPropSet->getPropertyValue("TextBox").get<bool>())
{
// Shapes with a Writer TextBox always have a parent style.
// If there would be none, then just assign the first available.