PianoRoll: fixed crash with detune tool
When clicking at an invalid position with the detune tool, LMMS could
crash as an invalid iterator was referenced (closes #2808589).
Furthermore renamed PianoRoll::ModeOpen to PianoRoll::ModeEditDetuning.
Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit 9ca93040de)
This commit is contained in:
@@ -150,7 +150,7 @@ private:
|
||||
ModeDraw,
|
||||
ModeErase,
|
||||
ModeSelect,
|
||||
ModeOpen,
|
||||
ModeEditDetuning,
|
||||
};
|
||||
|
||||
enum actions
|
||||
@@ -311,8 +311,7 @@ private:
|
||||
void drawDetuningInfo( QPainter & _p, note * _n, int _x, int _y );
|
||||
bool mouseOverNote( void );
|
||||
note * noteUnderMouse( void );
|
||||
NoteVector::const_iterator noteIteratorUnderMouse( void );
|
||||
|
||||
|
||||
// turn a selection rectangle into selected notes
|
||||
void computeSelectedNotes( bool shift );
|
||||
void clearSelectedNotes( void );
|
||||
|
||||
Reference in New Issue
Block a user