mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
canvas: call Item::bounding_box() to recompute bounding box when needed
Since 74fe396cc5 compute_bounding_box() by itself does not do the entire computation, so we must call into Item::bounding_box() to get the result with children added also
This commit is contained in:
parent
c0425ba70f
commit
9095057675
3 changed files with 3 additions and 3 deletions
|
|
@ -256,7 +256,7 @@ Box::layout ()
|
||||||
|
|
||||||
if (yes_do_it) {
|
if (yes_do_it) {
|
||||||
reposition_children ();
|
reposition_children ();
|
||||||
compute_bounding_box ();
|
(void) bounding_box ();
|
||||||
|
|
||||||
const double w = std::max (requested_width, _bounding_box.width());
|
const double w = std::max (requested_width, _bounding_box.width());
|
||||||
const double h = std::max (requested_height, _bounding_box.height());
|
const double h = std::max (requested_height, _bounding_box.height());
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ void
|
||||||
Grid::reset_bg ()
|
Grid::reset_bg ()
|
||||||
{
|
{
|
||||||
if (_bounding_box_dirty) {
|
if (_bounding_box_dirty) {
|
||||||
compute_bounding_box ();
|
(void) bounding_box ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_bounding_box) {
|
if (!_bounding_box) {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ Polygon::covers (Duple const & point) const
|
||||||
bool oddNodes = false;
|
bool oddNodes = false;
|
||||||
|
|
||||||
if (_bounding_box_dirty) {
|
if (_bounding_box_dirty) {
|
||||||
compute_bounding_box ();
|
(void) bounding_box ();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < npoints; i++) {
|
for (i = 0; i < npoints; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue