]> Creatis software - clitk.git/blobdiff - vv/vvToolRigidReg.cxx
Debug Rigid Registration tool cancel
[clitk.git] / vv / vvToolRigidReg.cxx
index 8c2909e888158ce01eafe027126a32406dc8ed43..e50ab7fda50ec3a927afc399a5796d98d038f550 100644 (file)
@@ -178,7 +178,8 @@ bool vvToolRigidReg::close()
   msgBox.addButton(tr("Yes"), QMessageBox::AcceptRole);
   msgBox.addButton(tr("No"), QMessageBox::RejectRole);
   if (msgBox.exec() == QMessageBox::AcceptRole) {
-    SetTransform(mInitialMatrix);
+    if (mCurrentSlicerManager)
+        SetTransform(mInitialMatrix);
     return vvToolWidgetBase::close();
   }
   return false;