From: dmv Date: Tue, 11 Nov 2008 11:51:53 +0000 (+0000) Subject: 0020035: EDF 856 VISU: Regression from 3.2.9 in XYPlot X-Git-Tag: V4_1_0_maintainance_20081113~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce2561023fdbde4b571b425464d1ae5b5e4961dc;p=modules%2Fvisu.git 0020035: EDF 856 VISU: Regression from 3.2.9 in XYPlot --- diff --git a/src/VISU_I/VISU_ViewManager_i.cc b/src/VISU_I/VISU_ViewManager_i.cc index 873d1ed1..5bf32abb 100644 --- a/src/VISU_I/VISU_ViewManager_i.cc +++ b/src/VISU_I/VISU_ViewManager_i.cc @@ -345,7 +345,7 @@ namespace VISU { for (int i = 0; i < clist.count(); i++) { SPlot2d_Curve* aSPlot2dC = dynamic_cast(clist.at(i)); if (aSPlot2dC->hasIO() && - theCurve->GetEntry() != aSPlot2dC->getIO()->getEntry()) { + !strcmp(theCurve->GetEntry().c_str(), aSPlot2dC->getIO()->getEntry())) { if(MYDEBUG) MESSAGE("UpdatePlot2d - erasing : curve - " << aSPlot2dC); theView->eraseCurve(aSPlot2dC); } @@ -357,7 +357,7 @@ namespace VISU { for (int i = 0; i < clist.count(); i++) { SPlot2d_Curve* aSPlot2dC = dynamic_cast(clist.at(i)); if (aSPlot2dC->hasIO() && - theCurve->GetEntry() != aSPlot2dC->getIO()->getEntry()) { + !strcmp(theCurve->GetEntry().c_str(), aSPlot2dC->getIO()->getEntry())) { if(MYDEBUG) MESSAGE("UpdatePlot2d - displaying : curve - " << aSPlot2dC); aSPlot2dC->setHorTitle( theCurve->GetHorTitle().c_str() ); aSPlot2dC->setVerTitle( theCurve->GetVerTitle().c_str() ); @@ -406,7 +406,7 @@ namespace VISU { for (int i = 0; i < clist.count(); i++) { SPlot2d_Curve* aSPlot2dC = dynamic_cast(clist.at(i)); if (aSPlot2dC->hasIO() && - theCurve->GetEntry() != aSPlot2dC->getIO()->getEntry()) { + !strcmp(theCurve->GetEntry().c_str(), aSPlot2dC->getIO()->getEntry())) { if(MYDEBUG) MESSAGE("UpdatePlot2d - displaying only : curve - " << aSPlot2dC); aSPlot2dC->setHorTitle( theCurve->GetHorTitle().c_str() ); aSPlot2dC->setVerTitle( theCurve->GetVerTitle().c_str() ); @@ -585,7 +585,7 @@ namespace VISU { for (int i = 0; i < clist.count(); i++) { if (SPlot2d_Curve* cu = dynamic_cast(clist.at(i))) { if (cu->hasIO() && - myPrs->GetEntry() == cu->getIO()->getEntry()) { + strcmp(myPrs->GetEntry().c_str(), cu->getIO()->getEntry())) { vf->eraseCurve(cu); } }