diff options
author | navin patidar <patidar@kacst.edu.sa> | 2013-04-15 10:24:46 +0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-15 07:53:54 +0000 |
commit | 1e7bc069056518e216be7765796dff26ba06bb32 (patch) | |
tree | 5603dccc140357d9adf8691150d9bf91246800f0 /editeng | |
parent | 2a6009ffc10dc64dd6f8dc23f653ee8a49f9d86d (diff) |
use ImpEditEngine::ImplInitDigitModel() to set digit language.
Change-Id: I38047da8cb73493916803d73e1036dec68ee2d97
Reviewed-on: https://gerrit.libreoffice.org/3389
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 1299920e8e2f..92bb45ab372b 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -4320,19 +4320,8 @@ void ImpEditEngine::ImplInitLayoutMode( OutputDevice* pOutDev, sal_uInt16 nPara, // #114278# Also setting up digit language from Svt options // (cannot reliably inherit the outdev's setting) - LanguageType eLang; - - if( !pCTLOptions ) - pCTLOptions = new SvtCTLOptions; - - if ( SvtCTLOptions::NUMERALS_HINDI == pCTLOptions->GetCTLTextNumerals() ) - eLang = LANGUAGE_ARABIC_SAUDI_ARABIA; - else if ( SvtCTLOptions::NUMERALS_ARABIC == pCTLOptions->GetCTLTextNumerals() ) - eLang = LANGUAGE_ENGLISH; - else - eLang = (LanguageType) Application::GetSettings().GetLanguageTag().getLanguageType(); - - pOutDev->SetDigitLanguage( eLang ); + LanguageType eLang = (LanguageType) Application::GetSettings().GetLanguageTag().getLanguageType(); + ImplInitDigitMode( pOutDev, eLang ); } Reference < i18n::XBreakIterator > ImpEditEngine::ImplGetBreakIterator() const |