-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>
This commit is contained in:
Stephan Bergmann
2022-12-19 08:16:37 +01:00
parent b3a8d41fa9
commit a0c6bc7562

View File

@@ -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));