Skip to content

Commit

Permalink
Merge pull request #18833 from mantidproject/18832_incorrect_slicevie…
Browse files Browse the repository at this point in the history
…wer_axis

Added check for if nonorthogonal axes should be displayed
  • Loading branch information
martyngigg committed Feb 14, 2017
2 parents 348d5cd + 0d1ce7c commit e50a985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MantidQt/SliceViewer/src/SliceViewer.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e50a985

Please sign in to comment.