summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp2
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();