From 75260f9c9ba83ffbc46844ebaa5c0e661dc5aeab Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 6 Mar 2020 15:51:00 -0700 Subject: [PATCH] fix (potentially serious) typo that confused comparison with assignment --- gtk2_ardour/editor_sources.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index 3ade49ee55..5ffd23a203 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -321,7 +321,7 @@ EditorSources::remove_weak_region (boost::weak_ptr r) TreeModel::Children rows = _model->children(); for (TreeModel::iterator i = rows.begin(); i != rows.end(); ++i) { boost::shared_ptr rr = (*i)[_columns.region]; - if (rr = region) { + if (rr == region) { _model->erase(i); break; }