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
@ -578,7 +578,7 @@ AudioTimeAxisView::set_state (const XMLNode& node)
|
||||
void
|
||||
AudioTimeAxisView::set_height (TrackHeight h)
|
||||
{
|
||||
bool height_changed = (h != height_style);
|
||||
bool height_changed = (height == 0) || (h != height_style);
|
||||
|
||||
TimeAxisView::set_height (h);
|
||||
|
||||
|
@ -168,7 +168,7 @@ Editor::set_mouse_mode (MouseMode m, bool force)
|
||||
return;
|
||||
}
|
||||
|
||||
if (m == mouse_mode && !force) {
|
||||
if (!force && m == mouse_mode) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -152,6 +152,8 @@ GainMeter::GainMeter (IO& io, Session& s)
|
||||
hbox.set_spacing (0);
|
||||
hbox.pack_start (*fader_vbox, false, false, 2);
|
||||
|
||||
set_width(Narrow);
|
||||
|
||||
Route* r;
|
||||
|
||||
if ((r = dynamic_cast<Route*> (&_io)) != 0) {
|
||||
|
@ -144,6 +144,8 @@ PannerUI::PannerUI (IO& io, Session& s)
|
||||
|
||||
panner = 0;
|
||||
|
||||
set_width(Narrow);
|
||||
|
||||
_io.panner().Changed.connect (mem_fun(*this, &PannerUI::panner_changed));
|
||||
_io.panner().LinkStateChanged.connect (mem_fun(*this, &PannerUI::update_pan_linkage));
|
||||
_io.panner().StateChanged.connect (mem_fun(*this, &PannerUI::update_pan_state));
|
||||
|
Loading…
Reference in New Issue
Block a user