From: geay Date: Mon, 26 May 2014 10:13:03 +0000 (+0200) Subject: Bug correction reading of MED file in client/server mode. Workaround to avoid PV... X-Git-Tag: V7_4_0rc2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5c4c5bee573ea750629843ba8454b156c3ae42a;p=modules%2Fparavis.git Bug correction reading of MED file in client/server mode. Workaround to avoid PV bug. --- diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx index fb1b1743..83b01a23 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx @@ -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(g)); int idNames(0); vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames)); vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));