Browse Source

REPORT-126687 fbp设计器——单元格形态-条形码显示异常

mss/2.0
Destiny.Lin 5 months ago
parent
commit
541aec5bb3
  1. 5
      designer-realize/src/main/java/com/fr/design/present/BarCodePane.java

5
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<BarcodePresent> {
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 {

Loading…
Cancel
Save