summaryrefslogtreecommitdiff
path: root/sfx2/source
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
commit2fa48bb8062c69505acbcfa36554a8c1d2718f2d (patch)
treeccdab7001145d51dc2ddf8fb6488db0c2a42e1df /sfx2/source
parent3b1b29b5539108719e38f8b23dbdd75ebd082a1f (diff)
#i114423# prevent possible use of a ref. to deleted LocaleDataWrapper
Diffstat (limited to 'sfx2/source')
-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 6d7e809a7875..12ceb48b3792 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 ) )