]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/breathing-sign.cc
Issue 4212: fix out-of-bounds index in division_maior()
[lilypond.git] / lily / breathing-sign.cc
index 002ca37f6b3dfb57d4488198b435d4873156aaea..77dcfb4a30f2573bb63128d91a8d0139817e1de6 100644 (file)
@@ -119,7 +119,7 @@ Breathing_sign::divisio_maior (SCM smob)
                                     ydim[DOWN]);
               assert (line_pos.begin () < it);
               double val = (it[-1] + it[0]) / 2;
-              if (ydim[DOWN] < val && line_pos.begin () < it + 1)
+              if (ydim[DOWN] < val && line_pos.begin () < it - 1)
                 val = (it[-2] + it[-1]) / 2;
               ydim.add_point (val);