diff options
author | David Tardon <dtardon@redhat.com> | 2010-10-11 10:26:39 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-10-11 10:26:39 +0200 |
commit | 2fa48bb8062c69505acbcfa36554a8c1d2718f2d (patch) | |
tree | ccdab7001145d51dc2ddf8fb6488db0c2a42e1df /sfx2/source | |
parent | 3b1b29b5539108719e38f8b23dbdd75ebd082a1f (diff) |
#i114423# prevent possible use of a ref. to deleted LocaleDataWrapper
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 3 |
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 ) ) |