diff options
author | David Tardon <dtardon@redhat.com> | 2010-10-11 10:21:17 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-10-11 10:21:17 +0200 |
commit | 6cbe62c6a060744567acb5547cf734272c43e48d (patch) | |
tree | 903dddfd5ac6e51f001d71ea5895d1a0eb4cbfd8 /svx/source | |
parent | bebbece5e65d5af3b3a7f647d26ac71da0255267 (diff) |
#i114427# prevent possible use of a ref. to deleted LocaleDataWrapper
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/form/fmcontrollayout.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx index 39454c27324e..d29ae79a8cc8 100644 --- a/svx/source/form/fmcontrollayout.cxx +++ b/svx/source/form/fmcontrollayout.cxx @@ -143,7 +143,8 @@ namespace svxform Reference< XPropertySetInfo > xStylePSI( xStyle->getPropertySetInfo(), UNO_SET_THROW ); // determine the script type associated with the system locale - const LocaleDataWrapper& rSysLocaleData = SvtSysLocale().GetLocaleData(); + const SvtSysLocale aSysLocale; + const LocaleDataWrapper& rSysLocaleData = aSysLocale.GetLocaleData(); const sal_Int16 eSysLocaleScriptType = MsLangId::getScriptType( MsLangId::convertLocaleToLanguage( rSysLocaleData.getLocale() ) ); // depending on this script type, use the right property from the document's style which controls the |