From 48e319040bfd90bf3704db629020329d5befb9e5 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 13 Apr 2015 09:36:06 +0200 Subject: [PATCH] Try 0 of debug. --- .../MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx index c8e62244..d3d844b9 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderPanel.cxx @@ -273,12 +273,14 @@ void pqMEDReaderPanel::initAll() _leaves.insert(std::pair(item3,ll)); std::ostringstream pdm; pdm << name0.toStdString() << "/" << name1.toStdString() << "/" << name2.toStdString() << "/" << name3CppFull; (static_cast(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(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(SMProperty))->SetElement(2*ll+1,tmp.c_str()); //SMProperty->ResetToDefault(); - item2->setChecked(kk==0); - item3->setChecked(kk==0); + const char *tmp((static_cast(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++; -- 2.39.2