From: fred Date: Sun, 24 Mar 2002 19:43:18 +0000 (+0000) Subject: lilypond-0.0.63 X-Git-Tag: release/1.5.59~4730 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=027d4d8255ada8362812b01ca029fbe99cff8b6c;p=lilypond.git lilypond-0.0.63 --- diff --git a/lily/staffline.cc b/lily/staffline.cc index c5e17bc7fc..c4d4861b8c 100644 --- a/lily/staffline.cc +++ b/lily/staffline.cc @@ -33,26 +33,34 @@ Line_of_staff::TeXstring() const iter_top(line_of_score_l_->cols,cc); Real lastpos=cc->hpos; + // all items in the current line & staff. for (; cc.ok(); cc++) { - Real delta=cc->hpos - lastpos; - lastpos = cc->hpos; - - // moveover - if (delta) - s +=String( "\\kern ") + print_dimen(delta); + String chunk_str; + + Real delta = cc->hpos - lastpos; + + if (cc->error_mark_b_) { - s += String("\\columnerrormark"); + chunk_str += String("\\columnerrormark"); } // now output the items. for (iter_top(cc->its,i); i.ok(); i++) { if (i->pstaff_l_ == pstaff_l_) - s += i->TeXstring(); + chunk_str += i->TeXstring(); } // spanners. for (iter_top(cc->starters,i); i.ok(); i++) if (i->pstaff_l_ == pstaff_l_) - s += i->TeXstring(); + chunk_str += i->TeXstring(); + + if (chunk_str!="") { + // moveover + if (delta) + s +=String( "\\kern ") + print_dimen(delta); + s += chunk_str; + lastpos = cc->hpos; + } } } s+="\\hss}\\vss}";