canvas: items should not add child bboxes in their ::compute_bounding_box() method, Item::bounding_box() does that
This commit is contained in:
parent
ad6afbe68a
commit
c0425ba70f
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ Maschine2Knob::compute_bounding_box () const
|
|||
_bounding_box_dirty = false;
|
||||
}
|
||||
|
||||
add_child_bounding_boxes ();
|
||||
/* Item::bounding_box() will add children */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -251,7 +251,7 @@ Push2Knob::compute_bounding_box () const
|
|||
_bounding_box_dirty = false;
|
||||
}
|
||||
|
||||
add_child_bounding_boxes ();
|
||||
/* Item::bounding_box() will add children */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue