mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user