Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java')
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java
index 0fca4422ed4..f1606aac727 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java
@@ -155,7 +155,7 @@ public class LineContentBoundsDrawingTest {
RGB backgroundRgb = widget.getBackground().getRGB();
ImageData imageData = image.getImageData();
for (int x = imageData.width - 50 /* magic number to avoid rulers and other */; x >= 0; x--) {
- for (int y = 3 /* magic number as well to avoid title bar */; y < imageData.height; y++) {
+ for (int y = 3 /* magic number as well to avoid title bar */; y < imageData.height - 3; y++) {
if (!imageData.palette.getRGB(imageData.getPixel(x, y)).equals(backgroundRgb)) {
image.dispose();
return x;

Back to the top