summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/text/txtparae.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 56e6c3737553..f0f6360b4904 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -4075,8 +4075,7 @@ void XMLTextParagraphExport::ExportContentControl(
}
sal_uInt32 nTabIndex;
- xPropertySet->getPropertyValue("TabIndex") >>= nTabIndex;
- if (nTabIndex)
+ if ((xPropertySet->getPropertyValue("TabIndex") >>= nTabIndex) && nTabIndex)
{
GetExport().AddAttribute(XML_NAMESPACE_LO_EXT, XML_TAB_INDEX,
OUString::number(nTabIndex));