diff flys-backend/src/main/java/de/intevation/flys/importer/ImportRange.java @ 5542:f3b270e5462e

Wst Parser: Another attempt to fix the order of the Q ranges.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 03 Apr 2013 20:16:01 +0200
parents 2c99995395f5
children
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRange.java	Wed Apr 03 17:59:11 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRange.java	Wed Apr 03 20:16:01 2013 +0200
@@ -40,6 +40,12 @@
         return a.compareTo(b);
     }
 
+    public void fixRangesOrder() {
+        if (compare(a, b) > 0) {
+            BigDecimal t = a; a = b; b = t;
+        }
+    }
+
     public int compareTo(ImportRange other) {
         int cmp = compare(a, other.a);
         if (cmp != 0) return cmp;

http://dive4elements.wald.intevation.org