diff --git a/Framework/Algorithms/src/LineProfile.cpp b/Framework/Algorithms/src/LineProfile.cpp
index 7b7854a40a1751b91b0acd528234e184fe52b3f5..ef287132a4b78f595553bc9d84353db768e62a07 100644
--- a/Framework/Algorithms/src/LineProfile.cpp
+++ b/Framework/Algorithms/src/LineProfile.cpp
@@ -414,9 +414,13 @@ void LineProfile::exec() {
   // specified.
   Box actualBounds;
   actualBounds.top = verticalBins[vertInterval.first];
-  actualBounds.bottom = vertInterval.second < verticalBins.size() ? verticalBins[vertInterval.second] : verticalBins.back();
+  actualBounds.bottom = vertInterval.second < verticalBins.size()
+                            ? verticalBins[vertInterval.second]
+                            : verticalBins.back();
   actualBounds.left = horizontalBins[horInterval.first];
-  actualBounds.right = horInterval.second < horizontalBins.size() ? horizontalBins[horInterval.second] : horizontalBins.back();
+  actualBounds.right = horInterval.second < horizontalBins.size()
+                           ? horizontalBins[horInterval.second]
+                           : horizontalBins.back();
   setAxesAndUnits(*outWS, *ws, actualBounds, dir);
   setProperty(PropertyNames::OUTPUT_WORKSPACE, outWS);
 }