changeset 3356:6352244a4153

Cosmetics. flys-client/trunk@5039 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 18 Jul 2012 13:07:37 +0000
parents dab808e5f516
children 2ead3a26d74e
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java
diffstat 2 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jul 18 12:38:04 2012 +0000
+++ b/flys-client/ChangeLog	Wed Jul 18 13:07:37 2012 +0000
@@ -1,3 +1,8 @@
+2012-07-18	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java:
+	  Code compres	  Code compression.
+
 2012-07-18	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java	Wed Jul 18 12:38:04 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java	Wed Jul 18 13:07:37 2012 +0000
@@ -367,11 +367,8 @@
                  Map errors = e.getForm().getErrors();
                  if(validator.validate(e.getItem(), errors)) {
                      dp.setValueFromUI(e.getItem().getValue().toString());
-                     e.getForm().setErrors(errors, true);
                  }
-                 else {
-                     e.getForm().setErrors(errors, true);
-                 }
+                 e.getForm().setErrors(errors, true);
             }
         });
         return item;
@@ -396,11 +393,8 @@
                 Map errors = e.getForm().getErrors();
                 if(validator.validate(e.getItem(), errors)) {
                     ip.setValue(e.getItem().getValue().toString());
-                    e.getForm().setErrors(errors, true);
                 }
-                else {
-                    e.getForm().setErrors(errors, true);
-                }
+                e.getForm().setErrors(errors, true);
             }
         });
         return item;

http://dive4elements.wald.intevation.org