Skip to content

Commit

Permalink
Add another missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Oct 14, 2022
1 parent 848eb5c commit a4a1562
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/widget/wwaveformviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ void WWaveformViewer::highlightMark(WaveformMarkPointer pMark) {
}

void WWaveformViewer::unhighlightMark(WaveformMarkPointer pMark) {
QColor originalColor = mixxx::RgbColor::toQColor(getCuePointerFromCueMark(pMark)->getColor());
pMark->setBaseColor(originalColor, m_dimBrightThreshold);
auto pCue = getCuePointerFromCueMark(pMark);
if (pCue) {
QColor originalColor = mixxx::RgbColor::toQColor(pCue->getColor());
pMark->setBaseColor(originalColor, m_dimBrightThreshold);
}
}

bool WWaveformViewer::isPlaying() const {
Expand Down

0 comments on commit a4a1562

Please sign in to comment.