From 6fd2dbad0faee4abd9de74a21f4ecd4245b65e33 Mon Sep 17 00:00:00 2001 From: shenkangping Date: Mon, 14 Dec 2020 15:08:36 +0800 Subject: [PATCH] POB-197 --- .../design/ExternalImageBackgroundQuickPane.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fr/plugin/external/design/ExternalImageBackgroundQuickPane.java b/src/main/java/com/fr/plugin/external/design/ExternalImageBackgroundQuickPane.java index 05a5da5..3cc0423 100644 --- a/src/main/java/com/fr/plugin/external/design/ExternalImageBackgroundQuickPane.java +++ b/src/main/java/com/fr/plugin/external/design/ExternalImageBackgroundQuickPane.java @@ -136,9 +136,12 @@ public class ExternalImageBackgroundQuickPane extends BackgroundQuickPane { protected Void doInBackground() throws Exception { Image image = imageFileChooser.isCompressSelected() ? ImageUtils.defaultImageCompress(selectedFile) : BaseUtils.readImage(selectedFile.getPath()); CoreGraphHelper.waitForImage(image); - if (cachedId == null) { - cachedId = UUID.randomUUID().toString(); - } +// if (cachedId == null) { +// cachedId = UUID.randomUUID().toString(); +// } +// pioneer:POB-197,POB-388 复制的报表块修改外置背景图的时候用的同一个id,导致复制报表块和原始报表块背景被同步修改了。 +// 这里去掉cachedId的null判断,让每次编辑都生成一个新的cachedId避免这个问题 + cachedId = UUID.randomUUID().toString(); previewPane.setImage(image); imageStyle = Style.DEFAULT_STYLE.deriveImageLayout(imageLayoutPane.getSelectedItem()); previewPane.setImageStyle(imageStyle);