public:
Spanner* elt_l_;
Hyphen_spanner (Spanner*);
- void set_textitem (Direction, Item*);
+ void set_textitem (Direction, Score_element*);
static SCM brew_molecule (SCM);
};
// TODO: make virtual and do this for Items as well.
Interval_t<int> spanned_rank_iv ();
- void set_bound (Direction d, Item*);
+ void set_bound (Direction d, Score_element*);
Item *get_bound (Direction d) const;
Spanner (SCM);
}
void
-Spanner::set_bound(Direction d, Item*i)
+Spanner::set_bound(Direction d, Score_element*s)
{
+ Item * i = dynamic_cast<Item*> (s);
+ if (!i)
+ {
+ programming_error ("Must have Item for spanner bound.");
+ return;
+ }
+
spanned_drul_[d] =i;
/**