| 924 | } |
| 925 | |
| 926 | Track::TrackSelectionInfo BookmarkManager::GetTrackSelectionInfo(kml::TrackId const & trackId) const |
| 927 | { |
| 928 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 929 | auto const markId = GetTrackSelectionMarkId(trackId); |
| 930 | if (markId == kml::kInvalidMarkId) |
| 931 | return {}; |
| 932 | |
| 933 | auto const mark = GetMark<TrackSelectionMark>(markId); |
| 934 | return {trackId, mark->GetPivot(), mark->GetDistance()}; |
| 935 | } |
| 936 | |
| 937 | kml::MarkId BookmarkManager::GetTrackSelectionMarkId(kml::TrackId trackId) const |
| 938 | { |
no test coverage detected