summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKnut Radloff <kradloff>2003-04-22 15:30:12 +0000
committerKnut Radloff <kradloff>2003-04-22 15:30:12 +0000
commita5c7730c05043bf4a5d387f326fb62788b89bbcb (patch)
tree7fd2d90d9d2ee56086242a383efc66c4f72356ff
parent528f5173820ff84255a72997051dcf5d15609899 (diff)
downloadeclipse.platform.swt-a5c7730c05043bf4a5d387f326fb62788b89bbcb.tar.gz
eclipse.platform.swt-a5c7730c05043bf4a5d387f326fb62788b89bbcb.tar.xz
eclipse.platform.swt-a5c7730c05043bf4a5d387f326fb62788b89bbcb.zip
Fixes bug 36541
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java2
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 b4df96e881..80353beea8 100755
--- 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
@@ -479,7 +479,7 @@ public class StyledText extends Canvas {
line, i, paintY, gc, background, foreground, true);
if (paintY + lineHeight * 2 > clientArea.y + clientArea.height) {
endPage(page);
- paintY = clientArea.y;
+ paintY = clientArea.y - lineHeight;
page++;
if (page > endPage || i == lineCount - 1) {
break;