]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Try 0 of debug.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 13 Apr 2015 07:36:06 +0000 (09:36 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 13 Apr 2015 07:36:06 +0000 (09:36 +0200)
src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx

index c8e6224403e6888218340f7fd25170691c2be8f8..d3d844b9987815b2cde8f2f945628f6230833d24 100644 (file)
@@ -273,12 +273,14 @@ void pqMEDReaderPanel::initAll()
                   _leaves.insert(std::pair<pqTreeWidgetItemObject *,int>(item3,ll));
                   std::ostringstream pdm; pdm << name0.toStdString() << "/" << name1.toStdString() << "/" << name2.toStdString() << "/" << name3CppFull;
                   (static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll,pdm.str().c_str());
-                  char tmp2[2]; tmp2[0]=(kk==0?'1':'0'); tmp2[1]='\0';
-                  std::string tmp(tmp2);
-                  (static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll+1,tmp.c_str());
+                  ////char tmp2[2]; tmp2[0]=(kk==0?'1':'0'); tmp2[1]='\0';
+                  ////std::string tmp(tmp2);
+                  ////(static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll+1,tmp.c_str());
                   //SMProperty->ResetToDefault();
-                  item2->setChecked(kk==0);
-                  item3->setChecked(kk==0);
+                  const char *tmp((static_cast<vtkSMStringVectorProperty *>(SMProperty))->GetElement(2*ll+1));
+                  ////item2->setChecked(kk==0);
+                  ////item3->setChecked(kk==0);
+                  item3->setChecked(tmp[0]=='1');
                   item3->setProperty("PosInStringVector",QVariant(ll));
                   connect(item3,SIGNAL(checkedStateChanged(bool)),this,SLOT(aLev4HasBeenFired()));
                   ll++;