diff options
author | Eike Rathke <erack@redhat.com> | 2015-11-24 18:08:15 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-11-24 19:18:50 +0100 |
commit | 59dddbc45a782e5119c21412c6e71cc2d8d0d326 (patch) | |
tree | 672ca3686c8469c45ed5f2460f187718d4ffe2c7 /svl/source | |
parent | 3752616716d9a89f7b41f67323759f5f266ab615 (diff) |
nitpick, reduce to one string insertion
Change-Id: I546ae14d49bb64fb069a4a5d7dc7685e823ea3c3
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 690e045321d6..19dd531a9346 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -4895,16 +4895,15 @@ OUString SvNumberformat::GetMappedFormatstring( const NfKeywordTable& rKeywords, case NF_SYMBOLTYPE_CALDEL : if ( pStr[j+1] == "buddhist" ) { - aStr.insert( 0, "[$-" ); if ( rNum.IsSet() && rNum.GetNatNum() == 1 && MsLangId::getRealLanguage( rNum.GetLang() ) == LANGUAGE_THAI ) { - aStr.insert( 3, "D07041E]" ); // date in Thai digit, Buddhist era + aStr.insert( 0, "[$-D07041E]" ); // date in Thai digit, Buddhist era } else { - aStr.insert( 3, "107041E]" ); // date in Arabic digit, Buddhist era + aStr.insert( 0, "[$-107041E]" ); // date in Arabic digit, Buddhist era } j = j+2; } |