get editor controls layout/midi track header/scroomer to be the correct height
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 13 Apr 2016 19:28:27 +0000 (15:28 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 13 Apr 2016 19:28:34 +0000 (15:28 -0400)
Using is_mapped() is wrong, since if the editor was not visible (i.e. program has not yet shown the editor
"tab", then _group_tabs will have is_visible() == true but is_mapped() == false

gtk2_ardour/editor_canvas.cc

index 1c1d3b3813560c4bde1154172c8e7eba08313112..40ca1dbf22fd8880104fdbde8b17df2b67088457 100644 (file)
@@ -313,7 +313,7 @@ Editor::reset_controls_layout_width ()
        edit_controls_vbox.size_request (req);
        w = req.width;
 
-        if (_group_tabs->is_mapped()) {
+        if (_group_tabs->is_visible()) {
                _group_tabs->size_request (req);
                 w += req.width;
         }