canvas: items should not add child bboxes in their ::compute_bounding_box() method, Item::bounding_box() does that

This commit is contained in:
Paul Davis 2021-07-27 13:15:33 -06:00
parent ad6afbe68a
commit c0425ba70f
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ StepButton::compute_bounding_box () const
{
_bounding_box = Rect (0, 0, width, height);
add_child_bounding_boxes ();
/* Item::bounding_box() will add children */
bb_clean ();
}

View File

@ -158,7 +158,7 @@ Maschine2Knob::compute_bounding_box () const
_bounding_box_dirty = false;
}
add_child_bounding_boxes ();
/* Item::bounding_box() will add children */
}
void

View File

@ -251,7 +251,7 @@ Push2Knob::compute_bounding_box () const
_bounding_box_dirty = false;
}
add_child_bounding_boxes ();
/* Item::bounding_box() will add children */
}
void