summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-01-27 20:36:09 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-01-27 20:36:09 -0500
commit41001ae702c1f920b0e069de8ea6b4be60521101 (patch)
tree6f29bf174439e2003c04d4b0ce66d335bf6c3cd5 /gtk2_ardour
parentf8737f701264c8514006c7dbbf26025b62f98e39 (diff)
prevent a strange crash while iterating over tracks (now, and maybe in the future)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index b5fe18e91f..bf90ff3c54 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3264,7 +3264,7 @@ ARDOUR_UI::setup_order_hint ()
} else {
for (TrackSelection::iterator s = editor->get_selection().tracks.begin(); s != editor->get_selection().tracks.end(); ++s) {
RouteTimeAxisView* tav = dynamic_cast<RouteTimeAxisView*> (*s);
- if (tav->route()->order_key() > order_hint) {
+ if (tav && tav->route() && tav->route()->order_key() > order_hint) {
order_hint = tav->route()->order_key();
}
}