diff --git a/editor/trackview.cpp b/editor/trackview.cpp index f583578..7a1e94c 100644 --- a/editor/trackview.cpp +++ b/editor/trackview.cpp @@ -151,7 +151,7 @@ void TrackView::paintTopMargin(HDC hdc, RECT rcTracks) const std::basic_string &trackName = trackIter->first; - if (this->document->clientRemap.count(track) == 0) SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT)); + if (this->document->clientRemap.count(document->getTrackIndexFromPos(track)) == 0) SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT)); else SetTextColor(hdc, GetSysColor(COLOR_WINDOWTEXT)); TextOut(hdc, fillRect.left, 0,