Fix crash introduced in big shared_ptr commit.
authorCarl Hetherington <carl@carlh.net>
Thu, 9 Jul 2009 15:31:02 +0000 (15:31 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 9 Jul 2009 15:31:02 +0000 (15:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5341 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/time_axis_view.cc

index e61fa189b864f7f2c09efca26536caf1f40d05f5..1f50e938818ec4a0549781660a8619fcb491afda 100644 (file)
@@ -1210,7 +1210,7 @@ TimeAxisView::covers_y_position (double y)
                        }
                }
                        
-               return std::make_pair (this, l);
+               return std::make_pair (shared_from_this (), l);
        }
 
        for (Children::const_iterator i = children.begin(); i != children.end(); ++i) {