]> Creatis software - clitk.git/commitdiff
Seg Fault dealth with
authorbharath <bharath>
Tue, 27 Jul 2010 18:37:56 +0000 (18:37 +0000)
committerbharath <bharath>
Tue, 27 Jul 2010 18:37:56 +0000 (18:37 +0000)
vv/vvToolRigidReg.cxx

index ec5d1ae4040df9a6ff3384e0e59341252b13c299..f83136c11949ce5c804646ebf270b688c5cb0de7 100644 (file)
@@ -227,7 +227,11 @@ void vvToolRigidReg::SetTransform(double tX, double tY, double tZ, double aX, do
 void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix)
 {
     vtkSmartPointer<vtkTransform> 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();
 }
 //------------------------------------------------------------------------------