diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-04 18:05:17 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-04 18:05:17 +0000 |
commit | fc5be662befcbf973db2f21066b1b1883da7acc8 (patch) | |
tree | 51bd6a961f481b4accc7001a05757394000fc4b3 /gtk2_ardour/region_selection.h | |
parent | f0d2fec29dd00bf62ba946385dea603e20a5b7f4 (diff) |
Remove incorrect caching of region selection start/end points, and always compute them. I'm pretty sure the slow-down won't be a problem in practice. Fixes #3520.
git-svn-id: svn://localhost/ardour2/branches/3.0@7963 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_selection.h')
-rw-r--r-- | gtk2_ardour/region_selection.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gtk2_ardour/region_selection.h b/gtk2_ardour/region_selection.h index c4ad44da37..fd43e4626f 100644 --- a/gtk2_ardour/region_selection.h +++ b/gtk2_ardour/region_selection.h @@ -47,15 +47,11 @@ class RegionSelection : public std::list<RegionView*> void clear_all(); - nframes_t start () const { - return _current_start; - } + framepos_t start () const; /* "end" collides with list<>::end */ - nframes_t end_frame () const { - return _current_end; - } + framepos_t end_frame () const; const std::list<RegionView *>& by_layer() const { return _bylayer; } void by_position (std::list<RegionView*>&) const; @@ -66,9 +62,6 @@ class RegionSelection : public std::list<RegionView*> void add_to_layer (RegionView *); - nframes_t _current_start; ///< start position for the selection - nframes_t _current_end; ///< end position for the selection - std::list<RegionView *> _bylayer; ///< list of regions sorted by layer PBD::ScopedConnection death_connection; }; |