diff --git a/libs/widgets/qcodeedit.cpp b/libs/widgets/qcodeedit.cpp index a99d45a..cb73bd1 100644 --- a/libs/widgets/qcodeedit.cpp +++ b/libs/widgets/qcodeedit.cpp @@ -878,9 +878,9 @@ void QCodeEdit::highlightBrackets() { void QCodeEdit::applyExtraSelection() { auto inverseColorValue = [](const QColor & c) { - qreal hsv[4]; - c.getHsvF(&hsv[0], &hsv[1], &hsv[2], &hsv[3]); - return QColor::fromHsvF(hsv[0], hsv[1], 1. - hsv[2], hsv[3]); + int hsv[4]; + c.getHsv(&hsv[0], &hsv[1], &hsv[2], &hsv[3]); + return QColor::fromHsv(hsv[0], hsv[1], 255 - hsv[2], hsv[3]); }; QList esl; esl << es_line << es_selected << es_custom << es_brackets << es_search_list << es_cursor << es_link;