From c157fbcb58648322951430b2f30bcdf028a76330 Mon Sep 17 00:00:00 2001 From: Starryi Date: Fri, 8 Oct 2021 16:18:26 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-60171=20=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E3=80=91=E5=8D=95=E5=85=83=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=AE=BE=E7=BD=AE=E9=80=8F=E6=98=8E=E5=BA=95=E8=89=B2?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E4=B8=8D=E5=AF=B9=EF=BC=8C=E4=B8=94=E6=9C=89?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 透明底色图片的透明度正常,不过单元格样式预览界面在 windows上存在重影问题,需要修复下。 【改动思路】 绘制单元格样式预览内容前清空画布 --- .../src/main/java/com/fr/design/cell/CellStylePreviewPane.java | 1 + 1 file changed, 1 insertion(+) diff --git a/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java b/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java index c317d0e5a..355dca62d 100644 --- a/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java +++ b/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java @@ -43,6 +43,7 @@ public class CellStylePreviewPane extends JPanel { @Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; + g.clearRect(0, 0, getWidth(), getHeight()); paintTransparentBackground(g2d, style);