mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
fix MidiViewBackground keeping track of data note range
This commit is contained in:
parent
a5bfa387b2
commit
5801716a78
1 changed files with 7 additions and 2 deletions
|
|
@ -375,14 +375,19 @@ MidiViewBackground::update_data_note_range (uint8_t min, uint8_t max)
|
||||||
{
|
{
|
||||||
bool dirty = false;
|
bool dirty = false;
|
||||||
|
|
||||||
if (min < _data_note_min) {
|
/* Note: pitches can come and go, so both min and max could be moving
|
||||||
|
* up or down on any call.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (min != _data_note_min) {
|
||||||
_data_note_min = min;
|
_data_note_min = min;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
if (max > _data_note_max) {
|
if (max != _data_note_max) {
|
||||||
_data_note_max = max;
|
_data_note_max = max;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return dirty;
|
return dirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue