From: apo Date: Mon, 10 Apr 2006 12:41:23 +0000 (+0000) Subject: Fix for Bug9756 TC: Mandrake porting: Local co-ordinate system created in OCC Viewer... X-Git-Tag: T3_2_0b1_pre1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ce69b121ac3bd7dbeb20c95ed0efe7b58f374be;p=modules%2Fgui.git Fix for Bug9756 TC: Mandrake porting: Local co-ordinate system created in OCC Viewer is invisible (it is necessary to update VTK pipeline before getting any information from it) --- diff --git a/src/VTKViewer/VTKViewer_Trihedron.cxx b/src/VTKViewer/VTKViewer_Trihedron.cxx index 38401e6d6..0a61d395e 100755 --- a/src/VTKViewer/VTKViewer_Trihedron.cxx +++ b/src/VTKViewer/VTKViewer_Trihedron.cxx @@ -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];