Skip to content
Snippets Groups Projects
Commit d85354cd authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed error in strictdoublevalidator concerning negative values

parent 589442c8
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
QValidator::State validate(QString & input, int &pos) const QValidator::State validate(QString & input, int &pos) const
{ {
if (input.isEmpty() || input == ".") return Intermediate; if (input.isEmpty() || input == "." || input == "-") return Intermediate;
if (QDoubleValidator::validate(input, pos) != Acceptable) if (QDoubleValidator::validate(input, pos) != Acceptable)
return Invalid; return Invalid;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "InitialCondition.h" #include "InitialCondition.h"
#include "SourceTerm.h" #include "SourceTerm.h"
FEMConditionSetupDialog::FEMConditionSetupDialog(const std::string &associated_geometry, FEMConditionSetupDialog::FEMConditionSetupDialog(const std::string &associated_geometry,
const GeoLib::GEOTYPE type, const GeoLib::GEOTYPE type,
const std::string &geo_name, const std::string &geo_name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment