From 748dadd13889cc4bd152634585615dff252d1cc5 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 14 Oct 2024 16:34:09 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-137164=20fix:=20=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=A2=9C=E8=89=B2=E5=B1=95=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/style/color/NewColorSelectPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java b/designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java index 771a07d1d2..fb3e589650 100644 --- a/designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java +++ b/designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java @@ -462,7 +462,7 @@ public class NewColorSelectPane extends BasicPane implements ColorSelectable { int size = colors.length; for (int i = 1; i <= total; i++) { ColorCell cell = (ColorCell) this.pane.getComponent(i); - Color color = i < size ? colors[size - i - 1] : UsedColorPane.DEFAULT_COLOR; + Color color = i < size ? colors[size - i] : UsedColorPane.DEFAULT_COLOR; cell.setColor(color == null ? UsedColorPane.DEFAULT_COLOR : color); } }