From 541aec5bb31589a7ba114dd1f55bcb1ccb46d1bc Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Thu, 11 Jul 2024 14:04:34 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-126687=20fbp=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=8D=95=E5=85=83=E6=A0=BC=E5=BD=A2=E6=80=81?= =?UTF-8?q?-=E6=9D=A1=E5=BD=A2=E7=A0=81=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/present/BarCodePane.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/present/BarCodePane.java b/designer-realize/src/main/java/com/fr/design/present/BarCodePane.java index b0df938db0..15a895a201 100644 --- a/designer-realize/src/main/java/com/fr/design/present/BarCodePane.java +++ b/designer-realize/src/main/java/com/fr/design/present/BarCodePane.java @@ -1,5 +1,6 @@ package com.fr.design.present; +import com.fr.barcode.core.Barcode; import com.fr.code.bar.core.BarcodeAttr; import com.fr.code.BarcodeImpl; import com.fr.code.bar.core.BarCodeUtils; @@ -326,8 +327,8 @@ public class BarCodePane extends FurtherBasicBeanPane { if (obj == null) { return; } - if (obj instanceof BarcodeImpl) { - BarcodeImpl barcodeImpl = (BarcodeImpl) obj; + if (obj instanceof Barcode) { + Barcode barcodeImpl = (Barcode) obj; Dimension size = this.getSize(); barcodeImpl.draw((Graphics2D) g, (int) (size.getWidth() - barcodeImpl.getWidth()) / 2, (int) (size.getHeight() - barcodeImpl.getHeight()) / 2); } else {