mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Only resize other selected tracks if the one being dragged is selected.
git-svn-id: svn://localhost/ardour2/branches/3.0@5281 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
564e16ca07
commit
911c484bd7
1 changed files with 7 additions and 4 deletions
|
|
@ -5203,8 +5203,10 @@ Editor::add_to_idle_resize (TimeAxisView* view, int32_t h)
|
|||
|
||||
min_resulting = min (min_resulting, int32_t (_pending_resize_view->current_height()) + _pending_resize_amount);
|
||||
|
||||
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
||||
min_resulting = min (min_resulting, int32_t ((*i)->current_height()) + _pending_resize_amount);
|
||||
if (selection->tracks.contains (_pending_resize_view)) {
|
||||
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
||||
min_resulting = min (min_resulting, int32_t ((*i)->current_height()) + _pending_resize_amount);
|
||||
}
|
||||
}
|
||||
|
||||
if (min_resulting < 0) {
|
||||
|
|
@ -5223,12 +5225,13 @@ Editor::idle_resize ()
|
|||
{
|
||||
_pending_resize_view->idle_resize (_pending_resize_view->current_height() + _pending_resize_amount);
|
||||
|
||||
if (dynamic_cast<AutomationTimeAxisView*> (_pending_resize_view) == 0) {
|
||||
if (dynamic_cast<AutomationTimeAxisView*> (_pending_resize_view) == 0 &&
|
||||
selection->tracks.contains (_pending_resize_view)) {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue