From 0ed1e30c8c5beaa1eb62b7d704f2ab92d89a2111 Mon Sep 17 00:00:00 2001
From: Antti Soininen <soininen@ill.fr>
Date: Mon, 25 Sep 2017 13:49:22 +0200
Subject: [PATCH] Fixed a mistake in index calculation.

Re #20558
---
 Framework/Algorithms/src/LineProfile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/Algorithms/src/LineProfile.cpp b/Framework/Algorithms/src/LineProfile.cpp
index 3729a2f2ef7..add969177eb 100644
--- a/Framework/Algorithms/src/LineProfile.cpp
+++ b/Framework/Algorithms/src/LineProfile.cpp
@@ -414,7 +414,7 @@ void LineProfile::exec() {
   // specified.
   Box actualBounds;
   actualBounds.top = verticalBins[vertInterval.first];
-  actualBounds.bottom = verticalBins[vertInterval.second] - 1;
+  actualBounds.bottom = verticalBins[vertInterval.second - 1];
   actualBounds.left = horizontalBins[horInterval.first];
   actualBounds.right = horizontalBins[horInterval.second - 1];
   setAxesAndUnits(*outWS, *ws, actualBounds, dir);
-- 
GitLab