]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-bar-stub-engraver.cc
CG: add information about Regtest Checking Project
[lilypond.git] / lily / span-bar-stub-engraver.cc
index 47b0c1a4d55d007cadd2f40025119b3015ab978b..7b26ddbd1e68ed1d0892471d3f465650661e1bdf 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2011 Mike Solomon <mike@apollinemike.com>
+  Copyright (C) 2011--2012 Mike Solomon <mike@apollinemike.com>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 #include "span-bar.hh"
 #include "engraver.hh"
 
+/*
+  Note that span bar stubs exist for pure height calculations ONLY.
+  They should never be visually present on the page and should never
+  be engraved in contexts where BarLines are engraved.
+*/
+
 class Span_bar_stub_engraver : public Engraver
 {
   vector<Grob *> spanbars_;
@@ -52,8 +58,6 @@ Span_bar_stub_engraver::acknowledge_span_bar (Grob_info i)
   spanbars_.push_back (i.grob ());
 }
 
-// note that this can get out of hand if there are lots of vertical axis groups...
-
 void
 Span_bar_stub_engraver::acknowledge_hara_kiri_group_spanner (Grob_info i)
 {
@@ -118,7 +122,7 @@ Span_bar_stub_engraver::process_acknowledged ()
           gi.rerouting_daddy_context_ = affected_contexts[j];
           announce_grob (gi);
           if (!keep_extent[j])
-            it->set_property ("Y-extent", ly_interval2scm (Interval (infinity_f, -infinity_f)));
+            it->suicide ();//it->set_property ("Y-extent", ly_interval2scm (Interval (infinity_f, -infinity_f)));
         }
     }
   spanbars_.clear ();