- Item * broken_self = find_prebroken_piece (d);
- Item * broken_parent = parent->find_prebroken_piece (d);
-
- broken_self->dim_cache_[X_AXIS]->parent_l_ =
- broken_parent->dim_cache_[X_AXIS];
-
- /*
- ugh. Should do this is after breaking?
- */
- if (!broken_self->parent_l (Y_AXIS))
- {
- Score_element * yparent =dynamic_cast<Score_element*>(parent_l (Y_AXIS));
- Item *yparenti = dynamic_cast<Item*> (yparent);
- Item *broken_yparent = yparenti ?
- yparenti->find_prebroken_piece (d) : 0;
-
- if (!yparent)
- programming_error ("Vertical refpoint lost!");
- else if (yparenti)
- {
- broken_self->dim_cache_[Y_AXIS]->parent_l_ =
- broken_yparent->dim_cache_[Y_AXIS];
- }
- }
+ set_extent_callback (SCM_EOL, X_AXIS);
+ set_extent_callback (SCM_EOL, Y_AXIS);