From 8605fadc915dc8dbb3ce2436617fb705e4a36049 Mon Sep 17 00:00:00 2001 From: fanglei <294531121> Date: Sat, 30 Sep 2017 16:40:30 +0800 Subject: [PATCH] =?UTF-8?q?MOBILE-5434=20=E8=A7=A3=E5=86=B3=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF-=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=B1=9E=E6=80=A7-?= =?UTF-8?q?=E5=8F=8C=E5=90=91=E8=87=AA=E9=80=82=E5=BA=94=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=B8=8D=E4=BA=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/report/mobile/MobileRadioGroupPane.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer/src/com/fr/design/report/mobile/MobileRadioGroupPane.java b/designer/src/com/fr/design/report/mobile/MobileRadioGroupPane.java index 072b34b6c..dd1a6dad7 100644 --- a/designer/src/com/fr/design/report/mobile/MobileRadioGroupPane.java +++ b/designer/src/com/fr/design/report/mobile/MobileRadioGroupPane.java @@ -89,7 +89,9 @@ public class MobileRadioGroupPane extends BasicBeanPane{ * 选中指定index的按钮 */ public void selectIndexButton(int index) { - if (index < 0 || index > radioButtons.size() - 1) { + //这里删了默认按钮,所以这边判断的时候不能-1了 +// if (index < 0 || index > radioButtons.size() - 1) { fanglei: 这个注释不要删!不然以后可能忘记这个问题 + if (index < 0 || index > radioButtons.size()) { return; }