From 065d4830b64b28d7f376fd43a33b4e5587368c90 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Thu, 8 Oct 2009 13:17:02 +0200 Subject: [PATCH] FiguredBass: Don't continue spanner on unequal figures (e.g. diff. accidentals) --- lily/figured-bass-engraver.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lily/figured-bass-engraver.cc b/lily/figured-bass-engraver.cc index db4d5a3bfd..a7afdf32b4 100644 --- a/lily/figured-bass-engraver.cc +++ b/lily/figured-bass-engraver.cc @@ -202,13 +202,18 @@ Figured_bass_engraver::listen_bass_figure (Stream_event *ev) && groups_[i].group_is_equal_to (ev)) { groups_[i].current_event_ = ev; - groups_[i].force_no_continuation_ - = to_boolean (ev->get_property ("no-continuation")); - continuation_ = true; - return; + bool no_cont = to_boolean (ev->get_property ("no-continuation")); + groups_[i].force_no_continuation_ = no_cont; + // Exit only if this is a real continuation. If it is broken, + // continue just as usual (otherwise the figure will still be + // vertically aligned with the previous figure!) + if (!no_cont) { + continuation_ = true; + return; + } } } - } + } new_events_.push_back (ev); } -- 2.39.2