diff options
author | Markus Keller | 2016-01-14 21:33:38 +0000 |
---|---|---|
committer | Markus Keller | 2016-01-15 13:09:21 +0000 |
commit | 26d58984368004cf2cb4f4b92e857a7db359c22e (patch) | |
tree | 3f01c04aca81c9fac509b591ae9bda79268f98cd | |
parent | db8580f1409348086638ff981df02c90e7703e6f (diff) | |
download | eclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.tar.gz eclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.tar.xz eclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.zip |
Bug 485722: [cocoa] Moving cursor with arrow keys on Mac OS not working in "Word Wrap" mode
Change-Id: I03d34fde86aa41b0144e5da0e2e858c807ddb467
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 3 |
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 76e6e7c2e2..922d8d0560 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 @@ -2632,6 +2632,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 { @@ -2714,9 +2715,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 { |