From db8433dfe10c1dec64881346a43a752bdd6b8435 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Thu, 20 Mar 2008 18:17:03 +0000 Subject: [PATCH] Fix crash on paste in middle of single property song --- Sources/VLModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VLModel.cpp b/Sources/VLModel.cpp index 42814fd..9762516 100644 --- a/Sources/VLModel.cpp +++ b/Sources/VLModel.cpp @@ -1942,7 +1942,7 @@ void VLSong::PasteMeasures(size_t beginMeasure, const VLSong & measures, int mod ++beginProp; else ++propOffset; - if (fProperties[propAt] == endProp[-1]) + if (endProp > beginProp && fProperties[propAt] == endProp[-1]) --endProp; } int postOffset = endProp - beginProp;