]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/bar-script-engraver.cc
release: 1.3.24
[lilypond.git] / lily / bar-script-engraver.cc
index 0902c377e700ed2492afd3e492032e3100ea1b44..98d4c92fdf098d65d1c00aed6aa255254d9c9a44 100644 (file)
 #include "paper-column.hh"
 #include "paper-def.hh"
 #include "dimension-cache.hh"
-
+#include "staff-symbol-referencer.hh"
+#include "side-position-interface.hh"
+#include "staff-symbol.hh"
 
 Bar_script_engraver::Bar_script_engraver ()
 {
   axis_ = Y_AXIS;
   text_p_ =0;
-
   visibility_lambda_ 
     = ly_eval_str ("non-postbreak-visibility");
 }
@@ -101,6 +102,11 @@ Bar_script_engraver::do_pre_move_processing ()
 {
   if (text_p_)
     {
+      Staff_symbol * st = staff_symbol_referencer (text_p_).staff_symbol_l();
+      
+      if (st)
+       side_position (text_p_).add_support (st);
+      
       typeset_element (text_p_);
       text_p_ =0;
     }