From: bharath Date: Tue, 27 Jul 2010 18:37:56 +0000 (+0000) Subject: Seg Fault dealth with X-Git-Tag: v1.2.0~461 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=acca70108a5562fd2af6f59cf6c90e942059475d;p=clitk.git Seg Fault dealth with --- diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index ec5d1ae..f83136c 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -227,7 +227,11 @@ void vvToolRigidReg::SetTransform(double tX, double tY, double tZ, double aX, do void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix) { vtkSmartPointer transform =mCurrentSlicerManager->GetImage()->GetTransform(); - transform->SetMatrix(matrix); + for(int i=0; i<4;i++) + for(int j=0;j<4;j++) + mCurrentSlicerManager->GetImage()->GetTransform()->GetMatrix()->SetElement(i,j,matrix->GetElement(i,j)); + + Render(); } //------------------------------------------------------------------------------