diff options
-rw-r--r-- | qt-gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 57e410865..c4624c666 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -435,7 +435,7 @@ int parseTemperatureToMkelvin(const QString& text) { int mkelvin; QString numOnly = text; - numOnly.replace(",",".").remove(QRegExp("[^0-9.]")); + numOnly.replace(",",".").remove(QRegExp("[^-0-9.]")); if (numOnly == "") return 0; double number = numOnly.toDouble(); |