From fc63352e5550e7cbd31225fad7f9d3e1d01c8b7c Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sat, 17 May 2008 15:35:21 +0000 Subject: [PATCH] Allow selection of first note in pianoroll, as long as the mouse isn't too fast git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@978 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 5 +++++ src/gui/piano_roll.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c94dbfd0f..4cc11db9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,11 @@ * src/gui/widgets/automatable_button.cpp: Noted bug in automatable button + * src/gui/piano_roll.cpp: + Fix bug when trying to select note on first beat. However, still breaks if + the cursor moves quickly from right to left (i.e: if it skips the + pixel position) + 2008-05-14 Tobias Doerffel * include/project_renderer.h: diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index 20d8ed57b..fc61f2fae 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1174,7 +1174,7 @@ void pianoRoll::mouseMoveEvent( QMouseEvent * _me ) midiTime() ); } } - if( _me->x() <= WHITE_KEY_WIDTH ) + if( _me->x() < WHITE_KEY_WIDTH ) { update(); return;