Skip to content

Commit

Permalink
Using the correct const version: readX. Refs #4178.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Nov 23, 2011
1 parent a0507d6 commit 64e56cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/src/MatrixWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ namespace Mantid
double temp;
for (size_t workspaceIndex = 0; workspaceIndex < numberOfSpectra; workspaceIndex++)
{
const MantidVec& dataX = this->dataX(workspaceIndex); // force using const version
const MantidVec& dataX = this->readX(workspaceIndex); // force using const version
temp = dataX.front();
if (temp < xmin)
xmin = temp;
Expand Down

0 comments on commit 64e56cd

Please sign in to comment.