Commit 90096edc authored by twanvl's avatar twanvl

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

parent f9cf211f
...@@ -187,7 +187,7 @@ void GalleryList::onLeftDown(wxMouseEvent& ev) { ...@@ -187,7 +187,7 @@ void GalleryList::onLeftDown(wxMouseEvent& ev) {
int x = ev.GetX() - pos.x; int x = ev.GetX() - pos.x;
int y = ev.GetY() - pos.y; int y = ev.GetY() - pos.y;
size_t subcolumn = active_subcolumn; 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]; 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) { 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 // clicked on this column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment