changeset 6996:0f740919fa26

LocationDistancePanel error messages: do not imply calculation in the direction of kilometrage.
author Tom Gottfried <tom.gottfried@intevation.de>
date Thu, 12 Sep 2013 10:15:18 +0200
parents e0311aa32efb
children 7621f5f409b1
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Thu Sep 12 10:13:09 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Thu Sep 12 10:15:18 2013 +0200
@@ -963,17 +963,19 @@
         double step = getStep();
 
         if (from < min || from > max) {
-            String tmp = MESSAGES.error_validate_lower_range();
+            String tmp = MESSAGES.error_validate_range();
             tmp = tmp.replace("$1", nf.format(from));
             tmp = tmp.replace("$2", nf.format(min));
+            tmp = tmp.replace("$3", nf.format(max));
             errors.add(tmp);
             from = min;
         }
 
         if (to < min || to > max) {
-            String tmp = MESSAGES.error_validate_upper_range();
+            String tmp = MESSAGES.error_validate_range();
             tmp = tmp.replace("$1", nf.format(to));
-            tmp = tmp.replace("$2", nf.format(max));
+            tmp = tmp.replace("$2", nf.format(min));
+            tmp = tmp.replace("$3", nf.format(max));
             errors.add(tmp);
             to = max;
         }

http://dive4elements.wald.intevation.org