summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2010-11-04 14:45:24 +0000
committerFelipe Heidrich <fheidric>2010-11-04 14:45:24 +0000
commitf209574495f017b992df75b455bbefe36be0b24b (patch)
treea9af8275b1bd09908232f199a1ce308070a52b7d
parent1c13bfa4f5998bd1457271a41ff60ed77e473e39 (diff)
downloadeclipse.platform.swt-f209574495f017b992df75b455bbefe36be0b24b.tar.gz
eclipse.platform.swt-f209574495f017b992df75b455bbefe36be0b24b.tar.xz
eclipse.platform.swt-f209574495f017b992df75b455bbefe36be0b24b.zip
Bug 329295: [painting] Painting problems with mark occurrences highlighting
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
index ecee6962ea..6f3d62d18d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
@@ -828,7 +828,7 @@ RECT drawBorder(int /*long*/ hdc, int x, int y, int lineHeight, StyleItem[] line
OS.SetRect(drawRect, x + left, y, x + run.x + run.width, y + lineHeight);
if (drawClip != null) {
RECT lpDrawClip = new RECT();
- OS.SetRect(lpDrawClip, drawClip.x - lineWidth, drawClip.y, drawClip.x + drawClip.width + lineWidth, drawClip.y + drawClip.height);
+ OS.SetRect(lpDrawClip, drawClip.x - lineWidth, y, drawClip.x + drawClip.width + lineWidth, y + lineHeight);
OS.IntersectRect(drawRect, lpDrawClip, drawRect);
}
OS.Rectangle(hdc, drawRect.left,drawRect.top, drawRect.right, drawRect.bottom);