From 98ad43d8743e63676bf1c6a7e432ad51991a6ec3 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 11 Nov 2008 11:50:53 +0000 Subject: [PATCH] 0020035: EDF 856 VISU: Regression from 3.2.9 in XYPlot --- src/VISU_I/VISU_ViewManager_i.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VISU_I/VISU_ViewManager_i.cc b/src/VISU_I/VISU_ViewManager_i.cc index 24eba803..f67f7817 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() ); @@ -586,7 +586,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); } } -- 2.39.2