mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
canvas: honor explicit size request for Rectangle
This commit is contained in:
parent
19e4063b6b
commit
75177f3ef8
1 changed files with 7 additions and 2 deletions
|
|
@ -163,9 +163,14 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
||||||
void
|
void
|
||||||
Rectangle::size_request (double& w, double& h) const
|
Rectangle::size_request (double& w, double& h) const
|
||||||
{
|
{
|
||||||
|
if (_requested_width || _requested_width) {
|
||||||
|
w = _requested_width;
|
||||||
|
h = _requested_height;
|
||||||
|
} else {
|
||||||
w = _rect.width();
|
w = _rect.width();
|
||||||
h = _rect.height();
|
h = _rect.height();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Rectangle::compute_bounding_box () const
|
Rectangle::compute_bounding_box () const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue