Remove unneccesary dereference of the highlightcolor

This commit is contained in:
Rasmus Karlsson 2022-08-28 12:56:59 +02:00
parent 16042e7f8a
commit 8d9617df96

View file

@ -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};
}