diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-08-25 14:37:51 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-08-25 14:37:51 +0000 |
commit | 074c171b56fc7353a1c2201dc222b84eefe8e9e9 (patch) | |
tree | 302e6a9664324293eb74fd1ce8df0b8210322aa7 /vcl/source/gdi/sallayout.cxx | |
parent | f8eb46cedcfd1ef60a1a026f9fa42b2045b84109 (diff) |
INTEGRATION: CWS gslpatches5 (1.65.152); FILE MERGED
2005/08/05 12:31:37 pl 1.65.152.1: #i52932# optimize if statement
Diffstat (limited to 'vcl/source/gdi/sallayout.cxx')
-rwxr-xr-x | vcl/source/gdi/sallayout.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index b0b729b5829d..92c27ad2b41c 100755 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sallayout.cxx,v $ * - * $Revision: 1.65 $ + * $Revision: 1.66 $ * - * last change: $Author: rt $ $Date: 2005-03-30 09:07:17 $ + * last change: $Author: kz $ $Date: 2005-08-25 15:37:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -104,9 +104,13 @@ int GetVerticalFlags( sal_Unicode nChar ) || (nChar >= 0xfe20 && nChar <= 0xfe6f) // CJK compatibility || (nChar >= 0xff00 && nChar <= 0xfffd) ) // other CJK { - if( nChar == 0x2010 || nChar == 0x2015 - || nChar == 0x2016 || nChar == 0x2026 - || (nChar >= 0x3008 && nChar <= 0x301C && nChar != 0x3012) + /* #i52932# remember: + nChar == 0x2010 || nChar == 0x2015 + nChar == 0x2016 || nChar == 0x2026 + + are GF_NONE also, but already handled in the first if + */ + if((nChar >= 0x3008 && nChar <= 0x301C && nChar != 0x3012) || nChar == 0xFF3B || nChar == 0xFF3D || (nChar >= 0xFF5B && nChar <= 0xFF9F) // halfwidth forms || nChar == 0xFFE3 ) |