fixed typo in for loop that could cause a crash on the stats panel

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1254 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-12-27 19:13:37 +00:00
parent cd88dc3783
commit 81280467d5
+1 -1
View File
@@ -187,7 +187,7 @@ void GalleryList::onLeftDown(wxMouseEvent& ev) {
int x = ev.GetX() - pos.x;
int y = ev.GetY() - pos.y;
size_t subcolumn = active_subcolumn;
for (size_t j = 0 ; subcolumns.size() ; ++j) {
for (size_t j = 0 ; j < subcolumns.size() ; ++j) {
SubColumn& col = subcolumns[j];
if (x >= col.offset.x && y >= col.offset.y && x < col.size.x + col.offset.x && y < col.size.y + col.offset.y) {
// clicked on this column