Commit b7c34f21 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED Fancy app crash

parent d279544a
......@@ -237,10 +237,16 @@ void FancyMainWindow::refresh() {
if (Application::getTopLevelComponents().size() > 0) {
ImageComponent* comp = dynamic_cast<ImageComponent*>(Application::getTopLevelComponents().last());
if (comp) {
if (comp != nullptr && comp->getAxialSlices() != nullptr) {
comp->getAxialSlices()->setVisibility(viewer3D, true);
}
if (comp != nullptr && comp->getSagittalSlices() != nullptr) {
comp->getSagittalSlices()->setVisibility(viewer3D, true);
}
if (comp != nullptr && comp->getCoronalSlices() != nullptr) {
comp->getCoronalSlices()->setVisibility(viewer3D, true);
}
if (comp != nullptr && comp->getArbitrarySlices() != nullptr) {
comp->getArbitrarySlices()->setVisibility(viewer3D, true);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment