Adjust numStanzas on paste

This commit is contained in:
Matthias Neeracher 2011-09-08 02:18:07 +02:00
parent 58dbd3992b
commit 46b56bbf4a

View File

@ -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];
} }