diff --git a/lib/jkqtplotter/jkqtpbaseplotterstyle.cpp b/lib/jkqtplotter/jkqtpbaseplotterstyle.cpp index 2bb82f2a89..22a162f687 100644 --- a/lib/jkqtplotter/jkqtpbaseplotterstyle.cpp +++ b/lib/jkqtplotter/jkqtpbaseplotterstyle.cpp @@ -103,8 +103,8 @@ void JKQTBasePlotterStyle::loadSettings(const QSettings &settings, const QString QString kk=k; kk.remove(0, start.size()); QString num=""; - while (kk.front().isDigit()) { - num+=kk.front(); + while (kk.at(0).isDigit()) { + num+=kk.at(0); kk.remove(0, 1); } bool ok=false; diff --git a/lib/jkqtplotter/jkqtplotterstyle.cpp b/lib/jkqtplotter/jkqtplotterstyle.cpp index 174cd5cb46..f1648f92f3 100644 --- a/lib/jkqtplotter/jkqtplotterstyle.cpp +++ b/lib/jkqtplotter/jkqtplotterstyle.cpp @@ -84,8 +84,8 @@ void JKQTPlotterStyle::loadSettings(const QSettings &settings, const QString &gr QString kk=k; kk.remove(0, start.size()); QString num=""; - while (kk.front().isDigit()) { - num+=kk.front(); + while (kk.at(0).isDigit()) { + num+=kk.at(0); kk.remove(0, 1); } bool ok=false;