summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-10-11 10:26:39 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-11 10:26:39 +0200
commitd6163394a58630043d14cc900ac780dcbe790b9b (patch)
tree33f5975bb98d0833ecdfccc3a2a38a3150985ea8
parent5f53b1ac48f432011a3422306ca9de1fab496097 (diff)
#i114423# prevent possible use of a ref. to deleted LocaleDataWrapper
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index f843d17e30..a2cd55f89e 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -162,7 +162,8 @@ String CreateSizeText( ULONG nSize, BOOL bExtraBytes, BOOL bSmartExtraBytes )
fSize /= nGiga;
nDec = 3;
}
- const LocaleDataWrapper& rLocaleWrapper = SvtSysLocale().GetLocaleData();
+ const SvtSysLocale aSysLocale;
+ const LocaleDataWrapper& rLocaleWrapper = aSysLocale.GetLocaleData();
String aSizeStr( rLocaleWrapper.getNum( nSize1, 0 ) );
aSizeStr += aUnitStr;
if ( bExtraBytes && ( nSize1 < nSize2 ) )