From a6487c2354fdc7b933242be3663d2d3816a2899d Mon Sep 17 00:00:00 2001 From: "Hugh.C" Date: Mon, 30 Sep 2019 14:23:18 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-21689=20=E6=B0=B4=E5=8D=B0=E5=AF=86?= =?UTF-8?q?=E5=BA=A6=E6=9C=80=E5=B0=8F=E5=80=BC=E9=99=90=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=BA=A4=E4=BA=92=E6=8F=90=E4=BE=9B=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/gui/ispinner/UISpinner.java | 4 ++++ .../src/main/java/com/fr/design/report/WatermarkPane.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/gui/ispinner/UISpinner.java b/designer-base/src/main/java/com/fr/design/gui/ispinner/UISpinner.java index 6a5f61cc92..fb6752ac19 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ispinner/UISpinner.java +++ b/designer-base/src/main/java/com/fr/design/gui/ispinner/UISpinner.java @@ -102,6 +102,10 @@ public class UISpinner extends JPanel implements UIObserver, GlobalNameObserver return lessMinValue; } + public void resetLessMinValue() { + lessMinValue = false; + } + public void setValue(double value) { setValue(value, true); } diff --git a/designer-base/src/main/java/com/fr/design/report/WatermarkPane.java b/designer-base/src/main/java/com/fr/design/report/WatermarkPane.java index d5107d527b..07ec40bfee 100644 --- a/designer-base/src/main/java/com/fr/design/report/WatermarkPane.java +++ b/designer-base/src/main/java/com/fr/design/report/WatermarkPane.java @@ -276,6 +276,7 @@ public class WatermarkPane extends BasicPane { if (!spinner.isLessMinValue()) { return; } + spinner.resetLessMinValue(); createGapDialog(new StringBuilder(messageStr).append(limitMinValue).toString()); } }; @@ -295,6 +296,7 @@ public class WatermarkPane extends BasicPane { if (!spinner.isLessMinValue()) { return; } + spinner.resetLessMinValue(); createGapDialog(new StringBuilder(messageStr).append(limitMinValue).toString()); } };