]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/figured-bass-engraver.cc
Doc-de: minor updates
[lilypond.git] / lily / figured-bass-engraver.cc
index f0eaf5a1a96da6f9ee0564b9941db9c10d6af1ff..c0b4c09b92584dcb01cb6e597954256c474b7259 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2005--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 
   LilyPond is free software: you can redistribute it and/or modify
@@ -182,7 +182,7 @@ Figured_bass_engraver::stop_translation_timestep ()
 
 IMPLEMENT_TRANSLATOR_LISTENER (Figured_bass_engraver, rest);
 void
-Figured_bass_engraver::listen_rest (Stream_event *ev)
+Figured_bass_engraver::listen_rest (Stream_event *)
 {
   have_rest_ = true;
 }
@@ -333,6 +333,7 @@ Figured_bass_engraver::process_music ()
           groups_.push_back (group);
         }
 
+      groups_[k].reset_figure ();
       groups_[k].current_event_ = new_events_[i];
       groups_[k].figure_item_ = 0;
       k++;
@@ -458,8 +459,12 @@ Figured_bass_engraver::create_grobs ()
         {
           /*
             UGH should connect to the bass staff, and get the note heads.
+            For now, simply set the hidden figure to a default value to
+            ensure the extenders of different figures always end at the same
+            position, e.g. in <12 5> <12 5>
           */
           group.figure_item_->set_property ("transparent", SCM_BOOL_T);
+          group.figure_item_->set_property ("text", ly_string2scm ("0"));
           group.continuation_line_->set_bound (RIGHT, group.figure_item_);
         }