git://git.creatis.insa-lyon.fr
/
clitk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe5a47
)
Debug Rigid Registration tool cancel
author
tbaudier
<thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 09:37:12 +0000
(10:37 +0100)
committer
tbaudier
<thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 09:37:12 +0000
(10:37 +0100)
A segmentation fault occured after a click on Cancel during image selection
vv/vvToolRigidReg.cxx
patch
|
blob
|
history
diff --git
a/vv/vvToolRigidReg.cxx
b/vv/vvToolRigidReg.cxx
index 8c2909e888158ce01eafe027126a32406dc8ed43..e50ab7fda50ec3a927afc399a5796d98d038f550 100644
(file)
--- a/
vv/vvToolRigidReg.cxx
+++ b/
vv/vvToolRigidReg.cxx
@@
-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;