Browse Source

Pull request #13932: REPORT-115482 fix: 客户模板中报表块单元格插入图片,预览报错,编辑卡死

Merge in DESIGN/design from ~ZHANYING/design:release/11.0 to release/11.0

* commit '2f846bdcabc2230d93740d49029ea1b0204975e5':
  REPORT-115482 fix: 客户模板中报表块单元格插入图片,预览报错,编辑卡死
release/11.0
Zhanying-占盈 7 months ago
parent
commit
ecf5a1c8d4
  1. 8
      designer-base/src/main/java/com/fr/design/style/background/image/ImagePreviewPane.java

8
designer-base/src/main/java/com/fr/design/style/background/image/ImagePreviewPane.java

@ -9,6 +9,7 @@ import com.fr.base.Style;
import com.fr.design.gui.iscrollbar.UIScrollBar;
import com.fr.general.ImageWithSuffix;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.CoreGraphHelper;
import javax.swing.JComponent;
@ -92,9 +93,14 @@ public class ImagePreviewPane extends JComponent implements Scrollable, ImagePre
isLoading = false;
CoreGraphHelper.waitForImage(image);
if (image.getFineImage() != null && image.getImage() != null) {
try {
imageWidth = image.getWidth(null);
imageHeight = image.getHeight(null);
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
}
this.setToolTipText("Image Size: " + imageWidth + "x" + imageHeight + "px");
}
fireChangeListener();

Loading…
Cancel
Save