diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-14 09:53:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-14 16:04:17 +0000 |
commit | 02d4f6a2494621a17bb59d743ed499cce555839a (patch) | |
tree | d9cd8e8c7931b7f8025881720d8417d9c0c9b1bd /vcl/source | |
parent | 1f2c079dd2bc9a2f5aa3597a8222bde3073a04da (diff) |
split confused ImplInitDigitMode method into seperate functions
a) ImplCalcDigitLang that determines the digit language
b) ImplInitDigitMode that just sets the outputdevice according to that lang
c) and convertDigits that physically converts the digits in a string
from one language to another
then change the body of convertDigits to use GetLocalizedChar from vcl rather
than its outdated copy of the method, which teachs editeng all the digit modes
that were added since the method was originally copy and pasted.
Change-Id: I2ef7d5d3396c106d4f8fd90142c9d9cf99064bee
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index ff56f2ceb00f..d9c921d47cfc 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -148,7 +148,7 @@ VCL_DLLPUBLIC sal_UCS4 GetMirroredChar( sal_UCS4 nChar ) // ----------------------------------------------------------------------- -sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang ) +VCL_DLLPUBLIC sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang ) { // currently only conversion from ASCII digits is interesting if( (nChar < '0') || ('9' < nChar) ) |