From acca70108a5562fd2af6f59cf6c90e942059475d Mon Sep 17 00:00:00 2001 From: bharath Date: Tue, 27 Jul 2010 18:37:56 +0000 Subject: [PATCH] Seg Fault dealth with --- vv/vvToolRigidReg.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } //------------------------------------------------------------------------------ -- 2.47.1