From 46b56bbf4a36a9189347343ac9542d7668695c99 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Thu, 8 Sep 2011 02:18:07 +0200 Subject: [PATCH] Adjust numStanzas on paste --- Sources/VLSheetViewSelection.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/VLSheetViewSelection.mm b/Sources/VLSheetViewSelection.mm index 1f0deab..32407ab 100644 --- a/Sources/VLSheetViewSelection.mm +++ b/Sources/VLSheetViewSelection.mm @@ -256,6 +256,7 @@ VLSequenceCallback( if (![sender tag]) // Delete on paste, but not on overwrite [self song]->DeleteMeasures(fSelStart, fSelEnd); [self song]->PasteMeasures(fSelStart, sPasteboard, [sender tag]); + [self setNumStanzas: std::max([self song]->CountStanzas(), fNumStanzas)]; [[self document] didChangeSong]; [self setNeedsDisplay:YES]; }