(svn r26744) -Fix [FS6085-ish]: ScriptListSorterItemDescending::FindNext failed to detect the end.

pull/155/head
frosch 10 years ago
parent 63047e51b1
commit 898ec49421

@ -362,7 +362,12 @@ public:
this->has_no_more_items = true;
return;
}
this->item_iter--;
if (this->item_iter == this->list->items.begin()) {
/* Use 'end' as marker for 'beyond begin' */
this->item_iter = this->list->items.end();
} else {
this->item_iter--;
}
if (this->item_iter != this->list->items.end()) item_next = (*this->item_iter).first;
}

Loading…
Cancel
Save