]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Bug correction 2 same for MEDReader reader but here for filters in MEDReader with...
authorgeay <anthony.geay@cea.fr>
Mon, 2 Jun 2014 05:48:19 +0000 (07:48 +0200)
committergeay <anthony.geay@cea.fr>
Mon, 2 Jun 2014 05:48:19 +0000 (07:48 +0200)
src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx
src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx

index 7b7771ba8dd4a53f73bba364fe06b10f0ed787b2..69c5737438ec8658c59b8d457afb39bd3ecd51e9 100644 (file)
@@ -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<vtkMutableDirectedGraph *>(g));
   int idNames(0);
   vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames));
   vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));
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));