From 571944883b487aeba4ff6228973b1afd64f99f78 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 18 Mar 2024 18:18:26 +0100 Subject: [PATCH] IDEA-349443 ui: fix VCS Log graph rendering with 'Set Background Image' feature enabled IdeBackgroundUtil uses a custom Graphics2DDelegate to draw the background image. LinePainter2D ignores custom Stroke, and that breaks line rendering. GitOrigin-RevId: d08c7688c179a14628afd09d7f41c975021ab336 --- platform/util/ui/src/com/intellij/ui/Graphics2DDelegate.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/util/ui/src/com/intellij/ui/Graphics2DDelegate.java b/platform/util/ui/src/com/intellij/ui/Graphics2DDelegate.java index dc06ccf28243..e1c013a9d414 100644 --- a/platform/util/ui/src/com/intellij/ui/Graphics2DDelegate.java +++ b/platform/util/ui/src/com/intellij/ui/Graphics2DDelegate.java @@ -1,7 +1,6 @@ // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.ui; -import com.intellij.ui.paint.LinePainter2D; import org.jetbrains.annotations.NotNull; import java.awt.*; @@ -119,7 +118,7 @@ public class Graphics2DDelegate extends Graphics2D{ @Override public void drawLine(int x1, int y1, int x2, int y2) { - LinePainter2D.paint(myDelegate, x1, y1, x2, y2); + myDelegate.drawLine(x1, y1, x2, y2); } @Override