Transitioned TimelineLayoutHelper::get_track_header_rect to return
weak_ptr
This commit is contained in:
parent
e135cb18cb
commit
a501616a87
2 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ TimelineLayoutHelper::get_track_header_rect(
|
|||
return optional<Gdk::Rectangle>();
|
||||
}
|
||||
|
||||
weak_ptr<timeline::Track>
|
||||
shared_ptr<timeline::Track>
|
||||
TimelineLayoutHelper::header_from_point(const Gdk::Point &point)
|
||||
{
|
||||
std::pair<weak_ptr<timeline::Track>, Gdk::Rectangle> pair;
|
||||
|
|
@ -100,7 +100,7 @@ TimelineLayoutHelper::header_from_point(const Gdk::Point &point)
|
|||
point.get_x() < rect.get_x() + rect.get_width() &&
|
||||
point.get_y() >= rect.get_y() &&
|
||||
point.get_y() < rect.get_y() + rect.get_height())
|
||||
return pair.first;
|
||||
return shared_ptr<timeline::Track>(pair.first);
|
||||
}
|
||||
|
||||
// No track was found - return an empty pointer
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public:
|
|||
boost::optional<Gdk::Rectangle> get_track_header_rect(
|
||||
boost::weak_ptr<timeline::Track> track);
|
||||
|
||||
boost::weak_ptr<timeline::Track> header_from_point(
|
||||
boost::shared_ptr<timeline::Track> header_from_point(
|
||||
const Gdk::Point &point);
|
||||
|
||||
boost::shared_ptr<timeline::Track> track_from_y(const int y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue