aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 03e1386..f31e6b4 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.cc,v 1.16 2003/10/13 23:43:11 fluxgen Exp $ 22// $Id: Button.cc,v 1.17 2004/01/08 22:05:12 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -126,8 +126,8 @@ void Button::buttonReleaseEvent(XButtonEvent &event) {
126 126
127 // finaly, execute command (this must be done last since this object might be deleted by the command) 127 // finaly, execute command (this must be done last since this object might be deleted by the command)
128 if (event.button > 0 && event.button <= 5 && 128 if (event.button > 0 && event.button <= 5 &&
129 event.x > 0 && event.x < width() && 129 event.x > 0 && event.x < static_cast<signed>(width()) &&
130 event.y > 0 && event.y < height() && 130 event.y > 0 && event.y < static_cast<signed>(height()) &&
131 m_onclick[event.button -1].get() != 0) 131 m_onclick[event.button -1].get() != 0)
132 m_onclick[event.button - 1]->execute(); 132 m_onclick[event.button - 1]->execute();
133 133