[PATCH] LocationDistancePanel error messages: do not imply calculation in the direction of kilometrage
Wald Commits
scm-commit at wald.intevation.org
Thu Sep 12 10:15:22 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1378973718 -7200
# Node ID 0f740919fa26d7ab9ae1dd438a3ffbdc0c9420df
# Parent e0311aa32efba05637f706e93c76c8e54407e82a
LocationDistancePanel error messages: do not imply calculation in the direction of kilometrage.
diff -r e0311aa32efb -r 0f740919fa26 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java
--- 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;
}
More information about the Dive4elements-commits
mailing list