comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java @ 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 ea9eef426962
children 48d8dba891f6
comparison
equal deleted inserted replaced
6995:e0311aa32efb 6996:0f740919fa26
961 double from = getFrom(); 961 double from = getFrom();
962 double to = getTo(); 962 double to = getTo();
963 double step = getStep(); 963 double step = getStep();
964 964
965 if (from < min || from > max) { 965 if (from < min || from > max) {
966 String tmp = MESSAGES.error_validate_lower_range(); 966 String tmp = MESSAGES.error_validate_range();
967 tmp = tmp.replace("$1", nf.format(from)); 967 tmp = tmp.replace("$1", nf.format(from));
968 tmp = tmp.replace("$2", nf.format(min)); 968 tmp = tmp.replace("$2", nf.format(min));
969 tmp = tmp.replace("$3", nf.format(max));
969 errors.add(tmp); 970 errors.add(tmp);
970 from = min; 971 from = min;
971 } 972 }
972 973
973 if (to < min || to > max) { 974 if (to < min || to > max) {
974 String tmp = MESSAGES.error_validate_upper_range(); 975 String tmp = MESSAGES.error_validate_range();
975 tmp = tmp.replace("$1", nf.format(to)); 976 tmp = tmp.replace("$1", nf.format(to));
976 tmp = tmp.replace("$2", nf.format(max)); 977 tmp = tmp.replace("$2", nf.format(min));
978 tmp = tmp.replace("$3", nf.format(max));
977 errors.add(tmp); 979 errors.add(tmp);
978 to = max; 980 to = max;
979 } 981 }
980 982
981 if (!errors.isEmpty()) { 983 if (!errors.isEmpty()) {

http://dive4elements.wald.intevation.org