summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-02 11:06:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-02 16:08:25 +0100
commit4ac88a4d5efb14b8a699930e8253876aeee15aa7 (patch)
treefa61333afbb0cbd51716f118c6695e7c89341b4a /xmloff
parentc2496c09e15625de93d3ed883d3219fdd9d90360 (diff)
ofz#6656 -1 isn't a good flag for all elements filled
Change-Id: I163de8fd943859fbf986da0928f3e3552d063a09 Reviewed-on: https://gerrit.libreoffice.org/50622 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/XMLNumberStyles.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx
index b3e6f9bb4a1c..809d86b1a7b5 100644
--- a/xmloff/source/draw/XMLNumberStyles.cxx
+++ b/xmloff/source/draw/XMLNumberStyles.cxx
@@ -603,11 +603,8 @@ SdXMLNumberFormatImportContext::~SdXMLNumberFormatImportContext()
void SdXMLNumberFormatImportContext::add( OUString const & rNumberStyle, bool bLong, bool bTextual, bool bDecimal02, OUString const & rText )
{
- if( mnIndex == -1 || mnIndex == 16 )
- {
- mnIndex = -1;
+ if (mnIndex == 16)
return;
- }
const SdXMLDataStyleNumber* pStyleMember = aSdXMLDataStyleNumbers;
for( sal_uInt8 nIndex = 0; pStyleMember->meNumberStyle != XML_TOKEN_INVALID; nIndex++, pStyleMember++ )