]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Bug correction reading of MED file in client/server mode. Workaround to avoid PV... V7_4_0 V7_4_0rc2
authorgeay <anthony.geay@cea.fr>
Mon, 26 May 2014 10:13:03 +0000 (12:13 +0200)
committergeay <anthony.geay@cea.fr>
Mon, 26 May 2014 10:13:03 +0000 (12:13 +0200)
src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx

index fb1b174351c728973004101fa2600760a7af60b6..83b01a23a183ced82162ae973c8aaeb7848473ad 100644 (file)
@@ -139,7 +139,8 @@ void pqMEDReaderPanel::initAll()
   vtkGraph *g(info->GetSIL());
   if(!g)//something wrong server side...
     return ;
-  vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g));
+  //vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g));// agy: this line does not work in client/server mode ! but it works in standard mode ! Don't know why. ParaView bug ?
+  vtkMutableDirectedGraph *g2(static_cast<vtkMutableDirectedGraph *>(g));
   int idNames(0);
   vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames));
   vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));