Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-09-05 20:55:30 +0000
committerFelipe Heidrich2007-09-05 20:55:30 +0000
commit8055a453f05370d5251c7c8e20f51ea944c108c4 (patch)
treee7a02cdc25e1985a73d5c81d48d0c93d2108df04
parent1a5170ab7b7811c0002720617ba55770a3edb698 (diff)
downloadeclipse.platform.swt-8055a453f05370d5251c7c8e20f51ea944c108c4.tar.gz
eclipse.platform.swt-8055a453f05370d5251c7c8e20f51ea944c108c4.tar.xz
eclipse.platform.swt-8055a453f05370d5251c7c8e20f51ea944c108c4.zip
Bug 198745 StyledRange causes final Arabic character to have medial form
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
index 43cbe03790..89e243fafc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
@@ -2065,7 +2065,7 @@ StyleItem[] merge (int /*long*/ items, int itemCount) {
if (start < itemLimit && 0 < start && start < end) {
char pChar = segmentsText.charAt(start - 1);
char tChar = segmentsText.charAt(start);
- if (!Compatibility.isWhitespace(pChar) && !Compatibility.isWhitespace(tChar)) {
+ if (Compatibility.isLetter(pChar) && Compatibility.isLetter(tChar)) {
item.analysis.fLinkAfter = true;
linkBefore = true;
}

Back to the top