mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed clicking in multiple choice checklist boxes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@881 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -113,7 +113,7 @@ void MultipleChoiceValueEditor::determineSize(bool force_fit) {
|
||||
bool MultipleChoiceValueEditor::onLeftDown(const RealPoint& pos, wxMouseEvent& ev) {
|
||||
// find item under cursor
|
||||
if (style().render_style & RENDER_CHECKLIST) {
|
||||
int id = (int)((pos.y - style().top) / item_height);
|
||||
int id = (int)(pos.y / item_height);
|
||||
int end = field().choices->lastId();
|
||||
if (id >= 0 && id < end) {
|
||||
toggle(id);
|
||||
|
||||
Reference in New Issue
Block a user