summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-10-20 20:58:39 +0000
committerFelipe Heidrich <fheidric>2005-10-20 20:58:39 +0000
commit479604f113c606e39a3367fa5ec0dab8747e6a92 (patch)
tree62946dcc3bc277500d5ac2b748b5c159c13461cf
parentb8947344bc493d8cd296098a234666551ce64b66 (diff)
downloadeclipse.platform.swt-479604f113c606e39a3367fa5ec0dab8747e6a92.tar.gz
eclipse.platform.swt-479604f113c606e39a3367fa5ec0dab8747e6a92.tar.xz
eclipse.platform.swt-479604f113c606e39a3367fa5ec0dab8747e6a92.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
index 7b58103ad8..0ebf00eadd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
@@ -6333,7 +6333,7 @@ void setCaretLocation(Point location, int direction) {
String text = content.getLine(caretLine);
TextLayout layout = renderer.getTextLayout(text, lineOffset);
int lineInParagraph = layout.getLineIndex(caretOffset - lineOffset);
- caretHeight = layout.getLineBounds(lineInParagraph).height - lineSpacing;
+ caretHeight = layout.getLineBounds(lineInParagraph).height;
renderer.disposeTextLayout(layout);
if (caretHeight != lineHeight) {
direction = SWT.DEFAULT;