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:
twanvl
2008-05-25 14:14:51 +00:00
parent 0a97cc61b4
commit 47e37d8778
+1 -1
View File
@@ -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);