Skip to content

Commit 6877297

Browse files
committed
Fix artifact lines in Forms UI Section headers #3381
Section headers show artifacts lines because a previous change accidentally changed the operation for filling the background to use a height of 1 instead of the actual height to be filled. Fixes #3381
1 parent 9a6b6ae commit 6877297

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets

1 file changed

+1
-1
lines changed

bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormImages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public Image createImage(boolean returnMissingImageOnError, Device device) {
315315
Color color2 = new Color(device, fRGBs[1]);
316316
final ImageGcDrawer imageGcDrawer = (gc, width, height) -> {
317317
gc.setBackground(color1);
318-
gc.fillRectangle(0, 0, width, width);
318+
gc.fillRectangle(0, 0, width, height);
319319
gc.setForeground(color2);
320320
gc.setBackground(color1);
321321
gc.fillGradientRectangle(0, fMarginHeight + 2, 1, fTheight - 2, true);

0 commit comments

Comments
 (0)