mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-05 21:55:24 +00:00
Fixed header offset bug in TrackListView.
This commit is contained in:
parent
deb899b4f7
commit
24e8d79b6f
@ -294,7 +294,8 @@ size_t TrackListView::HeaderCalculator::AdapterToTrackListIndex(size_t index) {
|
||||
}
|
||||
|
||||
size_t TrackListView::HeaderCalculator::TrackListToAdapterIndex(size_t index) {
|
||||
return this->ApplyHeaderOffset(index, 1);
|
||||
return (index == 0 && this->rawOffsets && this->rawOffsets->size() > 0)
|
||||
? 1 : this->ApplyHeaderOffset(index, 1); /* meh... */
|
||||
}
|
||||
|
||||
size_t TrackListView::HeaderCalculator::ApplyHeaderOffset(size_t index, int delta) {
|
||||
|
Loading…
Reference in New Issue
Block a user