#i114427# prevent possible use of a ref. to deleted LocaleDataWrapper

This commit is contained in:
David Tardon 2010-10-11 10:21:17 +02:00
parent bebbece5e6
commit 6cbe62c6a0

View file

@ -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