Skip to content
Snippets Groups Projects
Commit ac2aad9c authored by Joseph Ramsay's avatar Joseph Ramsay
Browse files

Re #22394 Reverse check that column is number

parent 7b4edbdd
No related branches found
No related tags found
No related merge requests found
......@@ -298,9 +298,6 @@ void MantidTable::cellEdited(int row, int col) {
}
if (c->isNumber()) {
std::istringstream textStream(oldText.toStdString());
c->read(index, textStream);
} else {
// We must be dealing with numerical data. Since there semms to be no way
// convert between QLocale and std::locale, get the number out
// of the Qt locale and put it into default std::locale format.
......@@ -319,6 +316,9 @@ void MantidTable::cellEdited(int row, int col) {
1) << number;
std::istringstream stream(textStream.str());
c->read(index, stream);
} else {
std::istringstream textStream(oldText.toStdString());
c->read(index, textStream);
}
}
......
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