From 1459b27c0d773f29f060a620de21adc92be57950 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 6 Sep 2009 06:17:38 +0200 Subject: [PATCH] tag editor: check if mouse cursor is in range --- src/tag_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 47a64d2c..91c09d92 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -725,7 +725,7 @@ void TagEditor::MouseButtonPressed(MEVENT me) { if (w != FParser) PrevColumn(); - if (me.bstate & (BUTTON1_PRESSED | BUTTON3_PRESSED)) + if (size_t(me.y) < FParser->Size() && (me.bstate & (BUTTON1_PRESSED | BUTTON3_PRESSED))) { FParser->Goto(me.y); if (me.bstate & BUTTON3_PRESSED)