diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index cc00ab950..0dce3e286 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -414,7 +414,7 @@ void NotebookTab::paintEvent(QPaintEvent *) if (this->highlightState_ == HighlightState::Highlighted && this->highlightColor_ != nullptr) { - auto col = *this->highlightColor_.get(); + QColor col = *this->highlightColor_; col.setAlpha(255); colors.line = {col, col, col}; }