summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 22:58:50 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 23:00:06 -0600
commitc617be8307033394bde4255c05b72dbd01ae0056 (patch)
treebda35b72f8b61d71f22517a197517ec3bbffa0b0 /svx
parentae0fa7cc62e1f57d22e68b2ef45086aeb1dfe41c (diff)
remove legacy String svl's Put*Entry family of function and convert users
Change-Id: Iebf4017ce4c2c48389716eac1bbf7f386ac7a296
Diffstat (limited to 'svx')
-rw-r--r--svx/source/items/numfmtsh.cxx7
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.