From c5c4c5bee573ea750629843ba8454b156c3ae42a Mon Sep 17 00:00:00 2001 From: geay Date: Mon, 26 May 2014 12:13:03 +0200 Subject: [PATCH] Bug correction reading of MED file in client/server mode. Workaround to avoid PV bug. --- src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.39.2