Salome HOME
Merge branch 'abn/port_pv42' into abn/rearch
[modules/paravis.git] / src / Plugins / MEDReader / ParaViewPlugin / pqExtractGroupPanel.cxx
index 96aa7993c18c1c64f3248e3062a51bd944c14f39..0628b109dc2df2846be725eb9394aa9681f22198 100644 (file)
@@ -122,7 +122,8 @@ pqExtractGroupPanel::pqExtractGroupPanel(pqProxy* object_proxy, QWidget* p):Supe
   vtkPVSILInformation* info=vtkPVSILInformation::New();
   reader->GatherInformation(info);
   vtkGraph *g(info->GetSIL());
-  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));