Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-01-14 16:33:38 -0500
committerMarkus Keller2016-01-28 11:56:51 -0500
commit60be7e2988c197f84d00c039cc18d9701b81578a (patch)
tree3b475012ff1811f83047280b50fe64b57e50a77c
parent8dfc49a069ef3fb76025cdcd6c20bdda7a203dde (diff)
downloadeclipse.platform.swt-60be7e2988c197f84d00c039cc18d9701b81578a.tar.gz
eclipse.platform.swt-60be7e2988c197f84d00c039cc18d9701b81578a.tar.xz
eclipse.platform.swt-60be7e2988c197f84d00c039cc18d9701b81578a.zip
Bug 485722: [cocoa] Moving cursor with arrow keys on Mac OS not working in "Word Wrap" modeM20160129-1400M20160128-1800
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 324542a70f..7fb76a0398 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -2631,6 +2631,7 @@ void doLineDown(boolean select) {
caretLine++;
} else {
y = layout.getLineBounds(lineIndex + 1).y;
+ y++; // bug 485722: workaround for fractional line heights
}
renderer.disposeTextLayout(layout);
} else {
@@ -2713,9 +2714,11 @@ void doLineUp(boolean select) {
if (!firstLine) {
caretLine--;
y = renderer.getLineHeight(caretLine) - 1;
+ y--; // bug 485722: workaround for fractional line heights
}
} else {
y = layout.getLineBounds(lineIndex - 1).y;
+ y++; // bug 485722: workaround for fractional line heights
}
renderer.disposeTextLayout(layout);
} else {

Back to the top