summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-10-11 10:21:17 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-11 10:21:17 +0200
commit06c2ff3bd4f085b98f6f3336e80f13c5c31c6a8a (patch)
tree91d6b98a322febc251665bf36745c749451a6c5d
parentb769cc464d34f3f13733831b31fb41884734f6ab (diff)
#i114427# prevent possible use of a ref. to deleted LocaleDataWrapper
-rw-r--r--svx/source/form/fmcontrollayout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx
index bd4ebdef6e..94e73a310e 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