webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 5 10e98eab6f85
--- a/webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp	Mon Mar 30 12:54:55 2009 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp	Fri May 08 08:25:06 2009 +0300
@@ -128,7 +128,9 @@
             // and replace them with regular spaces. otherwise they show up as boxes.
             if (indexOfFirstNonRegularSpace > -1) {
                 for(; indexOfFirstNonRegularSpace<strLength; ++indexOfFirstNonRegularSpace ) {
-                    if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() ) {
+                	// if ZERO WIDTH SPACE found do not replace it with regular space
+                    if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() && 
+                    	!(Font::treatAsZeroWidthSpace (newStr[indexOfFirstNonRegularSpace]))) {
                         newStr[indexOfFirstNonRegularSpace] = ' ';
                     }
                 }