Bug 485722: [cocoa] Moving cursor with arrow keys on Mac OS not working in "Word Wrap" mode

Change-Id: I03d34fde86aa41b0144e5da0e2e858c807ddb467
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 324542a..7fb76a0 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 @@
 			caretLine++;
 		} else {
 			y = layout.getLineBounds(lineIndex + 1).y;
+			y++; // bug 485722: workaround for fractional line heights
 		}
 		renderer.disposeTextLayout(layout);
 	} else {
@@ -2713,9 +2714,11 @@
 			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 {