diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-26 11:28:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-26 11:29:26 +0100 |
commit | 87f91c0142d20d7b6782dfc27a6837966bd678da (patch) | |
tree | 0abbcd4d3533fbcd8aa66deafbbb6a3204fb056a /vcl | |
parent | f1b2a2a140e1cadf90f85e56a8de096e1507c5b2 (diff) |
Resolves: fdo#42390 allow zwj, etc. in metric unit text
Diffstat (limited to 'vcl')
-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 1a880eb3335b..7a7092d9f587 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1042,8 +1042,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 { |