summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-13 20:28:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-13 20:28:08 +0100
commitee3f3d937c35167993c462e5c6594a2b4e3982bf (patch)
treeb500e3e6faa3d1e80eb35d994a553836e8f8894a /sw
parentb3dd1e3106014589e7c771d49abb6e53a4f80c2d (diff)
#i114412# fix localedatawrapper crasher
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/bastyp/calc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index fd2560609000..85bffccf402a 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -1651,7 +1651,7 @@ bool SwCalc::Str2Double( const String& rCommand, xub_StrLen& rCommandPos,
if( pDoc )
{
LanguageType eLang = GetDocAppScriptLang( *pDoc );
- if( eLang != SvxLocaleToLanguage( pLclD->getLocale() ) )
+ if( eLang != SvxLocaleToLanguage( aSysLocale.GetLocaleData().getLocale() ) )
{
pLclD.reset( new LocaleDataWrapper(
::comphelper::getProcessServiceFactory(),