mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +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,8 +163,13 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
|||
void
|
||||
Rectangle::size_request (double& w, double& h) const
|
||||
{
|
||||
w = _rect.width();
|
||||
h = _rect.height();
|
||||
if (_requested_width || _requested_width) {
|
||||
w = _requested_width;
|
||||
h = _requested_height;
|
||||
} else {
|
||||
w = _rect.width();
|
||||
h = _rect.height();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue