diff --git a/src/gui/control/gallery_list.cpp b/src/gui/control/gallery_list.cpp index 9a7ced0d..4d85173e 100644 --- a/src/gui/control/gallery_list.cpp +++ b/src/gui/control/gallery_list.cpp @@ -23,6 +23,7 @@ const int BORDER = 1; // margin between items GalleryList::GalleryList(Window* parent, int id, int direction) : wxScrolledWindow(parent, id, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER | (direction == wxHORIZONTAL ? wxHSCROLL : wxVSCROLL) ) , direction(direction) + , selection(NO_SELECTION) {} void GalleryList::update() {