mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
fix invalid width when swiching to 2in2out
This commit is contained in:
parent
58def58bf5
commit
a4dc05f603
1 changed files with 8 additions and 1 deletions
|
|
@ -78,7 +78,14 @@ Panner2in2out::Panner2in2out (boost::shared_ptr<Pannable> p)
|
|||
if (!_pannable->has_state()) {
|
||||
_pannable->pan_azimuth_control->set_value (0.5);
|
||||
_pannable->pan_width_control->set_value (1.0);
|
||||
}
|
||||
}
|
||||
|
||||
double const w = width();
|
||||
double const wrange = min (position(), (1 - position())) * 2;
|
||||
if (fabs(w) > wrange) {
|
||||
set_width(w > 0 ? wrange : -wrange);
|
||||
}
|
||||
|
||||
|
||||
update ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue