mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Fixed some valgrind errors from using uninitialized variables in
conditionals. git-svn-id: svn://localhost/trunk/ardour2@532 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
21704435b1
commit
ce6c41c060
4 changed files with 6 additions and 2 deletions
|
|
@ -578,7 +578,7 @@ AudioTimeAxisView::set_state (const XMLNode& node)
|
||||||
void
|
void
|
||||||
AudioTimeAxisView::set_height (TrackHeight h)
|
AudioTimeAxisView::set_height (TrackHeight h)
|
||||||
{
|
{
|
||||||
bool height_changed = (h != height_style);
|
bool height_changed = (height == 0) || (h != height_style);
|
||||||
|
|
||||||
TimeAxisView::set_height (h);
|
TimeAxisView::set_height (h);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ Editor::set_mouse_mode (MouseMode m, bool force)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m == mouse_mode && !force) {
|
if (!force && m == mouse_mode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,8 @@ GainMeter::GainMeter (IO& io, Session& s)
|
||||||
hbox.set_spacing (0);
|
hbox.set_spacing (0);
|
||||||
hbox.pack_start (*fader_vbox, false, false, 2);
|
hbox.pack_start (*fader_vbox, false, false, 2);
|
||||||
|
|
||||||
|
set_width(Narrow);
|
||||||
|
|
||||||
Route* r;
|
Route* r;
|
||||||
|
|
||||||
if ((r = dynamic_cast<Route*> (&_io)) != 0) {
|
if ((r = dynamic_cast<Route*> (&_io)) != 0) {
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,8 @@ PannerUI::PannerUI (IO& io, Session& s)
|
||||||
|
|
||||||
panner = 0;
|
panner = 0;
|
||||||
|
|
||||||
|
set_width(Narrow);
|
||||||
|
|
||||||
_io.panner().Changed.connect (mem_fun(*this, &PannerUI::panner_changed));
|
_io.panner().Changed.connect (mem_fun(*this, &PannerUI::panner_changed));
|
||||||
_io.panner().LinkStateChanged.connect (mem_fun(*this, &PannerUI::update_pan_linkage));
|
_io.panner().LinkStateChanged.connect (mem_fun(*this, &PannerUI::update_pan_linkage));
|
||||||
_io.panner().StateChanged.connect (mem_fun(*this, &PannerUI::update_pan_state));
|
_io.panner().StateChanged.connect (mem_fun(*this, &PannerUI::update_pan_state));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue