diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-08-18 17:13:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-08-18 17:13:07 +0000 |
commit | a3608080d25fdbbda96511f05242c50c9f62ff10 (patch) | |
tree | a60e1f0349dc274dfb87e660348a624715274386 /gtk2_ardour/editor_region_list.cc | |
parent | 82aec0140304828d8bd52cbd59635bd55cd985cf (diff) |
prevent yet another crash caused by non-region nodes in the region list treeview
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3695 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_region_list.cc')
-rw-r--r-- | gtk2_ardour/editor_region_list.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_region_list.cc b/gtk2_ardour/editor_region_list.cc index fb22f6ed67..666fadb790 100644 --- a/gtk2_ardour/editor_region_list.cc +++ b/gtk2_ardour/editor_region_list.cc @@ -134,8 +134,8 @@ Editor::add_audio_region_to_region_display (boost::shared_ptr<AudioRegion> regio for (i = rows.begin(); i != rows.end(); ++i) { boost::shared_ptr<Region> rr = (*i)[region_list_columns.region]; - - if (region->region_list_equivalent (rr)) { + + if (rr && region->region_list_equivalent (rr)) { return; } } |