mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Pin fCursorMeasure to song size
This commit is contained in:
parent
4c5f4dbd60
commit
5e0cd4e002
|
@ -36,6 +36,8 @@ static VLSong sPasteboard;
|
||||||
// Fall through
|
// Fall through
|
||||||
//
|
//
|
||||||
case kRegionMeasure:
|
case kRegionMeasure:
|
||||||
|
fCursorMeasure =
|
||||||
|
std::max(0, std::min<int>(fCursorMeasure, [self song]->CountMeasures()));
|
||||||
if (fCursorMeasure > fSelEnd) {
|
if (fCursorMeasure > fSelEnd) {
|
||||||
fSelEnd = fCursorMeasure;
|
fSelEnd = fCursorMeasure;
|
||||||
[self setNeedsDisplay:YES];
|
[self setNeedsDisplay:YES];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user