incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1333816 - /incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx
Date Fri, 04 May 2012 09:01:31 GMT
Author: hdu
Date: Fri May  4 09:01:31 2012
New Revision: 1333816

URL: http://svn.apache.org/viewvc?rev=1333816&view=rev
Log:
#i103131# in doubt treat unicode variation selectors as invisible

Modified:
    incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx

Modified: incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx?rev=1333816&r1=1333815&r2=1333816&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx Fri May  4 09:01:31 2012
@@ -403,6 +403,11 @@ inline bool IsControlChar( sal_UCS4 cCha
     // byte order markers and invalid unicode
     if( (cChar == 0xFEFF) || (cChar == 0xFFFE) || (cChar == 0xFFFF) )
         return true;
+	// variation selectors
+	if( (0xFE00 <= cChar) && (cChar <= 0xFE0F) )
+		return true;
+	if( (0xE0100 <= cChar) && (cChar <= 0xE01EF) )
+		return true;
     return false;
 }
 



Mime
View raw message