From 81280467d51aa30d03a6413365ed7f1cc2763a33 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 27 Dec 2008 19:13:37 +0000 Subject: [PATCH] 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 --- src/gui/control/gallery_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/control/gallery_list.cpp b/src/gui/control/gallery_list.cpp index 332cb187..d7d63ed6 100644 --- a/src/gui/control/gallery_list.cpp +++ b/src/gui/control/gallery_list.cpp @@ -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