diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-26 11:28:39 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-04-26 12:43:19 +0200 |
commit | a61ab93a2c4db7831ca87d6b6725e0df15a644a5 (patch) | |
tree | e551f6c611ee5fdb0b9cfe8b927d1ed06890c56d | |
parent | 8d9e2d9a211f710e91ac7c607fea25895282d245 (diff) |
Resolves: fdo#42390 allow zwj, etc. in metric unit text
Signed-off-by: Andras Timar <atimar@suse.com>
-rw-r--r-- | vcl/source/control/field.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index b943938813fd..8a29f7af1d67 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1102,8 +1102,7 @@ static XubString ImplMetricGetUnitText( const XubString& rStr ) for ( short i = rStr.Len()-1; i >= 0; i-- ) { xub_Unicode c = rStr.GetChar( i ); - if ( unicode::isAlpha( c ) || - (c == '\'') || (c == '\"') || (c == '%' ) ) + if ( (c == '\'') || (c == '\"') || (c == '%' ) || unicode::isAlpha(c) || unicode::isControl(c) ) aStr.Insert( c, 0 ); else { |