From c0f2c1b7adff789644959c417f4fe76bc96a00fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 23 Sep 2022 23:57:58 +0200 Subject: [PATCH] Fixed Qt6 build --- src/data/kmlparser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/kmlparser.cpp b/src/data/kmlparser.cpp index ad118896..49373b22 100644 --- a/src/data/kmlparser.cpp +++ b/src/data/kmlparser.cpp @@ -683,10 +683,10 @@ QColor KMLParser::color() return QColor(); bool aok, bok, gok, rok; - int a = str.midRef(0, 2).toInt(&aok, 16); - int b = str.midRef(2, 2).toInt(&bok, 16); - int g = str.midRef(4, 2).toInt(&gok, 16); - int r = str.midRef(6, 2).toInt(&rok, 16); + int a = str.mid(0, 2).toInt(&aok, 16); + int b = str.mid(2, 2).toInt(&bok, 16); + int g = str.mid(4, 2).toInt(&gok, 16); + int r = str.mid(6, 2).toInt(&rok, 16); return (aok && bok && gok && rok) ? QColor(r, g, b, a) : QColor(); }