From 234555062143bd5a1a28f26b58c657008685c13f Mon Sep 17 00:00:00 2001 From: geay Date: Mon, 2 Jun 2014 07:48:19 +0200 Subject: [PATCH] Bug correction 2 same for MEDReader reader but here for filters in MEDReader with specific GUI. --- .../MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx | 3 ++- src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx index 7b7771ba..69c57374 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx @@ -87,7 +87,8 @@ pqExtractCellTypePanel::pqExtractCellTypePanel(pqProxy* object_proxy, QWidget* p 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(g)); int idNames(0); vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames)); vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames)); diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx index 96aa7993..0628b109 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx @@ -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(g)); int idNames(0); vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames)); vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames)); -- 2.39.2