mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
canvas; fix thinko and typo in Rectangle size_request()
This commit is contained in:
parent
b3a22a024c
commit
ea64eb87c5
1 changed files with 6 additions and 2 deletions
|
|
@ -163,11 +163,15 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
|||
void
|
||||
Rectangle::size_request (double& w, double& h) const
|
||||
{
|
||||
if (_requested_width || _requested_width) {
|
||||
if (_requested_width > 0.) {
|
||||
w = _requested_width;
|
||||
h = _requested_height;
|
||||
} else {
|
||||
w = _rect.width();
|
||||
}
|
||||
|
||||
if (_requested_height > 0.) {
|
||||
h = _requested_height;
|
||||
} else {
|
||||
h = _rect.height();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue