From 33529254f103c26bafdb466b5f56c4456d9061c0 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 1 Jun 2013 22:56:54 +0200 Subject: [PATCH] Fix dangling else --- Sources/VLMMAWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/VLMMAWriter.cpp b/Sources/VLMMAWriter.cpp index 2141d86..aa680c9 100644 --- a/Sources/VLMMAWriter.cpp +++ b/Sources/VLMMAWriter.cpp @@ -116,7 +116,7 @@ void VLMMAWriter::VisitNote(VLLyricsNote & n) { char buf[4]; std::string dur; - if (n.fDuration.fNum == 1) + if (n.fDuration.fNum == 1) { if (n.fDuration.IsPowerOfTwo()) { sprintf(buf, "%d", n.fDuration.fDenom); dur = buf; @@ -135,6 +135,7 @@ void VLMMAWriter::VisitNote(VLLyricsNote & n) } else if (n.fDuration.fDenom == 24) { dur = "6"; // 16th note triplet } + } if (fTied) { fMeasures.replace(fLastDur+1, 0, '+'+dur); fLastDur += 1+dur.size();