mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Adjust numStanzas on paste
This commit is contained in:
parent
58dbd3992b
commit
46b56bbf4a
|
@ -256,6 +256,7 @@ VLSequenceCallback(
|
||||||
if (![sender tag]) // Delete on paste, but not on overwrite
|
if (![sender tag]) // Delete on paste, but not on overwrite
|
||||||
[self song]->DeleteMeasures(fSelStart, fSelEnd);
|
[self song]->DeleteMeasures(fSelStart, fSelEnd);
|
||||||
[self song]->PasteMeasures(fSelStart, sPasteboard, [sender tag]);
|
[self song]->PasteMeasures(fSelStart, sPasteboard, [sender tag]);
|
||||||
|
[self setNumStanzas: std::max<int>([self song]->CountStanzas(), fNumStanzas)];
|
||||||
[[self document] didChangeSong];
|
[[self document] didChangeSong];
|
||||||
[self setNeedsDisplay:YES];
|
[self setNeedsDisplay:YES];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user