summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-12-19 23:29:07 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-25 11:52:47 +0000
commitd279684b59c6067d8530fa890fd4fe78a386769f (patch)
treeb1567b64f263c77bd796b4a47755e3a018a54a2a /xmloff
parentced7bcbf53c302a5fd0203216a1b4fda18059f6f (diff)
survive "TextBox" having no value
Change-Id: Iebed41cfcc5899387e3defb8d8a0792276349098 Reviewed-on: https://gerrit.libreoffice.org/13560 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
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 92a4243e3d7a..64396592401b 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -355,7 +355,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.