]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug9756 TC: Mandrake porting: Local co-ordinate system created in OCC Viewer...
authorapo <apo@opencascade.com>
Mon, 10 Apr 2006 12:41:23 +0000 (12:41 +0000)
committerapo <apo@opencascade.com>
Mon, 10 Apr 2006 12:41:23 +0000 (12:41 +0000)
(it is necessary to update VTK pipeline before getting any information from it)

src/VTKViewer/VTKViewer_Trihedron.cxx

index 38401e6d6f88cb1a0c76b593df7ac97fbfc3ea19..0a61d395edabad66d257d4414b8cfd2ca2cb86da 100755 (executable)
@@ -74,6 +74,7 @@ void VTKViewer_UnScaledActor::Render(vtkRenderer *theRenderer)
     int* aSize = theRenderer->GetRenderWindow()->GetSize();
     vtkFloatingPointType aWinDiag = sqrt(vtkFloatingPointType(aSize[0]*aSize[0]+aSize[1]*aSize[1]));
     vtkDataSet* aDataSet = GetMapper()->GetInput();
+    aDataSet->Update();
     vtkFloatingPointType aLength = aDataSet->GetLength();
     vtkFloatingPointType aPrecision = 1.0E-3;
     vtkFloatingPointType anOldScale = GetScale()[0];