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>
This commit is contained in:
@@ -152,7 +152,7 @@ private:
|
||||
ModeDraw,
|
||||
ModeErase,
|
||||
ModeSelect,
|
||||
ModeOpen,
|
||||
ModeEditDetuning,
|
||||
};
|
||||
|
||||
enum Actions
|
||||
@@ -313,8 +313,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