Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
ac2aad9c
Commit
ac2aad9c
authored
6 years ago
by
Joseph Ramsay
Browse files
Options
Downloads
Patches
Plain Diff
Re #22394 Reverse check that column is number
parent
7b4edbdd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MantidPlot/src/Mantid/MantidTable.cpp
+3
-3
3 additions, 3 deletions
MantidPlot/src/Mantid/MantidTable.cpp
with
3 additions
and
3 deletions
MantidPlot/src/Mantid/MantidTable.cpp
+
3
−
3
View file @
ac2aad9c
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment