From 0d1ce7cbcfa6c50f6363618229f86935ac917ba1 Mon Sep 17 00:00:00 2001 From: Lottie Greenwood Date: Mon, 13 Feb 2017 14:05:17 +0000 Subject: [PATCH] Added check for if nonorthogonal axes should be displayed Re #18832 --- MantidQt/SliceViewer/src/SliceViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MantidQt/SliceViewer/src/SliceViewer.cpp b/MantidQt/SliceViewer/src/SliceViewer.cpp index 000fb0fca621..b495dceb5de5 100644 --- a/MantidQt/SliceViewer/src/SliceViewer.cpp +++ b/MantidQt/SliceViewer/src/SliceViewer.cpp @@ -2954,7 +2954,7 @@ void SliceViewer::switchAxis() { if (m_canSwitchScales) { // cannot be called when sliceviewer first // initialised because axis is inaccurate auto isHKL = API::isHKLDimensions(m_ws, m_dimX, m_dimY); - if (isHKL) { + if (isHKL && ui.btnNonOrthogonalToggle->isChecked()) { applyNonOrthogonalAxisScaleDraw(); } else { applyOrthogonalAxisScaleDraw();