add an assert to catch bad stuff from the python
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/bindings.cc
→
src/bindings.cc
@@ -481,6 +481,7 @@ bool Bindings::addButton(const std::string &but, MouseContext::MC context,
MouseAction::MA action, PyObject *callback) { assert(context >= 0 && context < MouseContext::NUM_MOUSE_CONTEXT); + assert(action >= 0 && context < MouseContext::NUM_MOUSE_ACTION); Binding b(0,0); if (!translate(but, b, false))