mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Fix crash when going from >2 outputs (2D panner) to <= 2 outputs.
git-svn-id: svn://localhost/ardour2/branches/3.0@6380 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f450df300c
commit
06f094d4b6
3 changed files with 9 additions and 5 deletions
|
|
@ -358,6 +358,9 @@ PannerUI::setup_pan ()
|
|||
pan_adjustments.pop_back ();
|
||||
}
|
||||
|
||||
delete panner;
|
||||
panner = 0;
|
||||
|
||||
/* stick something into the panning viewport so that it redraws */
|
||||
|
||||
EventBox* eb = manage (new EventBox());
|
||||
|
|
@ -376,6 +379,9 @@ PannerUI::setup_pan ()
|
|||
pan_adjustments.pop_back ();
|
||||
}
|
||||
|
||||
delete panner;
|
||||
panner = 0;
|
||||
|
||||
while ((asz = pan_adjustments.size()) < npans) {
|
||||
|
||||
float x, rx;
|
||||
|
|
@ -447,8 +453,8 @@ PannerUI::setup_pan ()
|
|||
panner->set_name ("MixerPanZone");
|
||||
panner->show ();
|
||||
|
||||
panner->signal_button_press_event().connect
|
||||
(sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) 0), false);
|
||||
panner->signal_button_press_event().connect
|
||||
(sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) 0), false);
|
||||
}
|
||||
|
||||
update_pan_sensitive ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue