Kaydet (Commit) 447ca647 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Andras Timar

the last condition is "all other numbers", not the third, tdf#92457 related

(cherry picked from commit b3c11e2b)

So we'll properly strip the "value()<=1.79769313486232E+308"
condition that 5.1 will write.

This will not enable the handling of the style, but at least it is fed
correctly as intended to the number formatter.

Change-Id: Ic9571d938c4a8837c5712bafbfb2ebf9f32011df
Reviewed-on: https://gerrit.libreoffice.org/16988Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 5b597648
...@@ -2129,10 +2129,10 @@ void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex ) ...@@ -2129,10 +2129,10 @@ void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex )
if ( aConditions.isEmpty() && aMyConditions.size() == 1 && sRealCond == ">=0" ) if ( aConditions.isEmpty() && aMyConditions.size() == 1 && sRealCond == ">=0" )
bDefaultCond = true; bDefaultCond = true;
if ( nType == XML_TOK_STYLES_TEXT_STYLE && nIndex == 2 ) if ( nType == XML_TOK_STYLES_TEXT_STYLE && static_cast<size_t>(nIndex) == aMyConditions.size() - 1 )
{ {
// The third condition in a number format with a text part can only be // The last condition in a number format with a text part can only
// "all other numbers", the condition string must be empty. // be "all other numbers", the condition string must be empty.
bDefaultCond = true; bDefaultCond = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment