Skip to content
Snippets Groups Projects
Commit 0ed1e30c authored by Antti Soininen's avatar Antti Soininen
Browse files

Fixed a mistake in index calculation.

Re #20558
parent 73418033
No related branches found
No related tags found
No related merge requests found
...@@ -414,7 +414,7 @@ void LineProfile::exec() { ...@@ -414,7 +414,7 @@ void LineProfile::exec() {
// specified. // specified.
Box actualBounds; Box actualBounds;
actualBounds.top = verticalBins[vertInterval.first]; actualBounds.top = verticalBins[vertInterval.first];
actualBounds.bottom = verticalBins[vertInterval.second] - 1; actualBounds.bottom = verticalBins[vertInterval.second - 1];
actualBounds.left = horizontalBins[horInterval.first]; actualBounds.left = horizontalBins[horInterval.first];
actualBounds.right = horizontalBins[horInterval.second - 1]; actualBounds.right = horizontalBins[horInterval.second - 1];
setAxesAndUnits(*outWS, *ws, actualBounds, dir); setAxesAndUnits(*outWS, *ws, actualBounds, dir);
......
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