13
0

Don't resize selected tracks when dragging an automation view.

git-svn-id: svn://localhost/ardour2/branches/3.0@5277 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-26 12:18:57 +00:00
parent 0758c7e16a
commit fdceb08a93

View File

@ -96,6 +96,7 @@
#include "global_port_matrix.h"
#include "editor_drag.h"
#include "editor_group_tabs.h"
#include "automation_time_axis.h"
#include "i18n.h"
@ -5221,11 +5222,14 @@ bool
Editor::idle_resize ()
{
_pending_resize_view->idle_resize (_pending_resize_view->current_height() + _pending_resize_amount);
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
if (*i != _pending_resize_view) {
(*i)->idle_resize ((*i)->current_height() + _pending_resize_amount);
}
if (dynamic_cast<AutomationTimeAxisView*> (_pending_resize_view) == 0) {
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
if (*i != _pending_resize_view) {
(*i)->idle_resize ((*i)->current_height() + _pending_resize_amount);
}
}
}
flush_canvas ();