diff options
author | Eike Rathke <er@openoffice.org> | 2001-07-13 09:20:05 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-07-13 09:20:05 +0000 |
commit | 4c9f8fcddeec7f993dc91377d0c9eff4db73acac (patch) | |
tree | 5fac7807574fbd9b3b567863f1eec2d9d3f47a91 /svtools/source | |
parent | 1939c75f3d81df4c2ca724ee9ce4b9ea79ecbf46 (diff) |
#89253# locale data pointer must follow switched locale in convert mode
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/numbers/zforscan.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/svtools/source/numbers/zforscan.cxx b/svtools/source/numbers/zforscan.cxx index f0085ac48afc..506ea4395ecb 100644 --- a/svtools/source/numbers/zforscan.cxx +++ b/svtools/source/numbers/zforscan.cxx @@ -2,9 +2,9 @@ * * $RCSfile: zforscan.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: er $ $Date: 2001-07-04 17:33:02 $ + * last change: $Author: er $ $Date: 2001-07-13 10:20:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1334,7 +1334,6 @@ int ImpSvNumberformatScan::FinalScanGetCalendar( xub_StrLen& nPos, USHORT& i, xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment ) { const LocaleDataWrapper* pLoc = pFormatter->GetLocaleData(); - const CharClass* pChrCls = pFormatter->GetCharClass(); // save values for convert mode String sOldDecSep = pLoc->getNumDecimalSep(); @@ -1353,7 +1352,12 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment ) // change locale data et al if (bConvertMode) + { pFormatter->ChangeIntl(eNewLnge); + //! pointer may have changed + pLoc = pFormatter->GetLocaleData(); + } + const CharClass* pChrCls = pFormatter->GetCharClass(); xub_StrLen nPos = 0; // Korrekturposition USHORT i = 0; // durchlaeuft die Symbole |