Skip to content

Commit

Permalink
Fix method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbolt committed Aug 2, 2023
1 parent fb69e91 commit 2640559
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void sv4guiSeg2DEdit::OnSelectionChanged(std::vector<mitk::DataNode*> nodes )
} else {
ui->resliceSlider->turnOnReslice(false);
m_HasImageData = false;
EnableControls(false);
EnableGuiControls(false);
}
}

Expand Down Expand Up @@ -566,9 +566,13 @@ void sv4guiSeg2DEdit::OnSelectionChanged(std::vector<mitk::DataNode*> nodes )

if (m_HasImageData) {
ui->resliceSlider->turnOnReslice(true);

// If there is no image data then disable the reslice slider
// and most GUI controls to prevent SV from crashing.
//
} else {
ui->resliceSlider->turnOnReslice(false);
EnableControls(false);
EnableGuiControls(false);
}

m_DataInteractor->SetPathPoints(m_PathPoints);
Expand Down

0 comments on commit 2640559

Please sign in to comment.