diff --git a/Sources/VLLayout.cpp b/Sources/VLLayout.cpp index b3859df..5e7f908 100644 --- a/Sources/VLLayout.cpp +++ b/Sources/VLLayout.cpp @@ -38,7 +38,7 @@ static size_t NextBreak(const VLSong & song, size_t after=0) VLLayout::VLLayout(const VLSong & song, float width) { - size_t nextBreak = NextBreak(song); + size_t nextBreak = song.fMeasures.empty() ? 0 : NextBreak(song); for (size_t meas = 0; measCountMeasures() != fLastMeasures) { [self recalculateDimensions]; rect = [self bounds];