Kaydet (Commit) dfcc851d authored tarafından Eike Rathke's avatar Eike Rathke

accept proper number style condition != as not equal operator, fdo#76777

ODF 1.2 specifies '!=' as not equal operator in <number:number-style>
<style:map> style:condition attribute. So far '<>' is written, accept
the correct operator.

Change-Id: I6087992ee35fff5c7aa52b7cec2b83b0a78dbac1
üst df098f62
...@@ -2068,7 +2068,14 @@ void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex ) ...@@ -2068,7 +2068,14 @@ void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex )
if (!bDefaultCond) if (!bDefaultCond)
{ {
sal_Int32 nPos = sRealCond.indexOf( '.' ); // Convert != to <>
sal_Int32 nPos = sRealCond.indexOf( "!=" );
if ( nPos >= 0 )
{
sRealCond = sRealCond.replaceAt( nPos, 2, "<>" );
}
nPos = sRealCond.indexOf( '.' );
if ( nPos >= 0 ) if ( nPos >= 0 )
{ {
// #i8026# #103991# localize decimal separator // #i8026# #103991# localize decimal separator
......
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