diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-04 12:46:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-04 12:46:04 +0000 |
| commit | f28550dc28608a7ad4dadaedbef21e09171d18fa (patch) | |
| tree | 29ed5c47d5200d2525b09615417aa701144e53c9 | |
| parent | 833276412e076c8da83460ba58e251886a58c353 (diff) | |
add an assert to catch bad stuff from the python
| -rw-r--r-- | src/bindings.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings.cc b/src/bindings.cc index df1de3ec..5ae389b1 100644 --- a/src/bindings.cc +++ b/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)) |
