summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-12-19 08:16:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-12-19 14:12:06 +0000
commita0c6bc75628513f3c501321eea1458d77bacc36c (patch)
tree4aedd53fe674eb1af0dcde61f9e2d720840017d4 /xmloff/source
parentb3a8d41fa93574dd62db156f90b3f707f8afeff3 (diff)
-Werror=maybe-uninitialized
Change-Id: Ib467fa5eec2560943e10adc2c440fdbf8f853a2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144446 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff/source')
-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));