diff options
author | Felipe Heidrich <Felipe_Heidrich@ca.ibm.com> | 2012-02-14 14:58:22 -0500 |
---|---|---|
committer | Felipe Heidrich <Felipe_Heidrich@ca.ibm.com> | 2012-02-14 14:58:22 -0500 |
commit | bda61fcf4d94db1af2718e1a5f14c99c4ec12c81 (patch) | |
tree | 83f3a7f0312a4f648cae27b20bc8656a0e63a6e9 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets | |
parent | 75968627e6ab61e9dac8b042b74558e922f755b8 (diff) | |
parent | 3a3b3eae51c5c9d2dc56f640836dc0c23db825a4 (diff) | |
download | eclipse.platform.swt-bda61fcf4d94db1af2718e1a5f14c99c4ec12c81.tar.gz eclipse.platform.swt-bda61fcf4d94db1af2718e1a5f14c99c4ec12c81.tar.xz eclipse.platform.swt-bda61fcf4d94db1af2718e1a5f14c99c4ec12c81.zip |
Merge branch 'master' into bug230854
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 2 |
1 files changed, 1 insertions, 1 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 8001a64cdc..edb5b6a6b1 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 @@ -5281,7 +5281,7 @@ int getVisualLineIndex(TextLayout layout, int offsetInLine) { int[] offsets = layout.getLineOffsets(); if (lineIndex != 0 && offsetInLine == offsets[lineIndex]) { int lineY = layout.getLineBounds(lineIndex).y; - int caretY = getCaret().getLocation().y - topMargin - getLinePixel(getCaretLine()); + int caretY = getCaret().getLocation().y - getLinePixel(getCaretLine()); if (lineY > caretY) lineIndex--; caretAlignment = OFFSET_LEADING; } |