Fixed endless loop if negative master index range ends at zero.
authorFlorian Pose <fp@igh-essen.com>
Thu, 25 Feb 2010 15:29:33 +0100
changeset 1828 651e9cfb244b
parent 1827 489be2180f71
child 1829 853bfd38ef5d
Fixed endless loop if negative master index range ends at zero.
tool/NumberListParser.cpp
--- a/tool/NumberListParser.cpp	Wed Feb 24 17:24:20 2010 +0100
+++ b/tool/NumberListParser.cpp	Thu Feb 25 15:29:33 2010 +0100
@@ -219,8 +219,8 @@
             ret.push_back(i);
         }
     } else {
-        for (; i >= j; i--) {
-            ret.push_back(i);
+        for (; j <= i; j++) {
+            ret.push_front(j);
         }
     }