Assume increasing ranges if second number is omitted.

This commit is contained in:
Florian Pose 2011-01-04 08:36:41 +01:00
parent bf144c593c
commit abfc319232
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ NumberListParser::List NumberListParser::parse(const char *data)
case Range:
if (i >= size) {
int max = maximum();
if (max >= 0) {
// only increasing ranges if second number omitted
if (max >= 0 && firstNum <= (unsigned int) max) {
List r = range(firstNum, max);
ret.splice(ret.end(), r);
}