Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0fca4422e..f1606aac7 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