- Item *it=i.elem_l_->access_Item ();
- if (script_p_
- || !it || !it->is_type_b (Bar::static_name()))
- return;
-
- /* Only put numbers on bars that are at our own level (don't put
- numbers over the staffs of a GrandStaff, only over the GrandStaff
- itself */
- if (i.origin_grav_l_arr_.size() != 1)
- return;
-
- Time_description const * time = get_staff_info().time_C_;
- if (!time || time->cadenza_b_)
- return;
-
- script_p_ = new Script;
- Text_def *td_p = new Text_def;
- td_p->text_str_ = to_str (time->bars_i_);
-
- td_p->align_dir_ = LEFT;
-
- script_p_->dir_ = UP;
- script_p_->axis_ = Y_AXIS;
- script_p_->specs_p_ = td_p->clone ();
- script_p_->breakable_b_ = true;
-
- Scalar pri = get_property ("barNumberBreakPriority");
- if (pri.length_i () && pri.isnum_b ())