diff options
Diffstat (limited to 'svx/source/items/numfmtsh.cxx')
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 9ba7e2a75d64..7e72d3356767 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -252,9 +252,14 @@ bool SvxNumberFormatShell::AddFormat( String& rFormat, xub_StrLen& rErrPos, } else // neues Format { - bInserted = pFormatter->PutEntry( rFormat, rErrPos, + OUString sTemp(rFormat); + sal_Int32 nPos; + bInserted = pFormatter->PutEntry( sTemp, nPos, nCurCategory, nAddKey, eCurLanguage ); + rErrPos = (nPos >= 0) ? (xub_StrLen)nPos : 0xFFFF; + rFormat = sTemp; + if (bInserted) { // May be sorted under a different locale if LCID was parsed. |