summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2007-03-16 21:14:32 +0000
committerFelipe Heidrich <fheidric>2007-03-16 21:14:32 +0000
commitc17bb7da1a45b44d770605869664ab9d0fe68f28 (patch)
tree5606545312fcb2a796028142d49e51d0c28fdd72
parent87153aa28221181a3c3227de677ec8646c30a8d7 (diff)
downloadeclipse.platform.swt-c17bb7da1a45b44d770605869664ab9d0fe68f28.tar.gz
eclipse.platform.swt-c17bb7da1a45b44d770605869664ab9d0fe68f28.tar.xz
eclipse.platform.swt-c17bb7da1a45b44d770605869664ab9d0fe68f28.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
index 685f4d206b..de2ec98e61 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
@@ -871,6 +871,12 @@ int _getOffset (int offset, int movement, boolean forward) {
if (logAttr.is_word_start) break;
}
}
+ if ((movement & SWT.MOVEMENT_WORD_START) != 0) {
+ if (logAttr.is_word_start) break;
+ }
+ if ((movement & SWT.MOVEMENT_WORD_END) != 0) {
+ if (logAttr.is_word_end) break;
+ }
offset = validateOffset(offset, step);
}
OS.g_free(attrs[0]);