diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-02 11:06:12 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-06 21:57:31 +0100 |
commit | 69a757172b947260fcbc54958282f47676d37879 (patch) | |
tree | c079dddc33816b514e374a760cec8368abf8012d | |
parent | e755b5ebd9050acefee5f54333d1393df039576a (diff) |
ofz#6656 -1 isn't a good flag for all elements filled
Change-Id: I163de8fd943859fbf986da0928f3e3552d063a09
Reviewed-on: https://gerrit.libreoffice.org/50626
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 88b1ca64c0cdb426025b246618e7e9e880c286d8)
-rw-r--r-- | xmloff/source/draw/XMLNumberStyles.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx index cd8f8fae9709..5538563c8119 100644 --- a/xmloff/source/draw/XMLNumberStyles.cxx +++ b/xmloff/source/draw/XMLNumberStyles.cxx @@ -609,11 +609,8 @@ SdXMLNumberFormatImportContext::~SdXMLNumberFormatImportContext() void SdXMLNumberFormatImportContext::add( OUString& rNumberStyle, bool bLong, bool bTextual, bool bDecimal02, OUString& 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++ ) |