aPlot->getCurves( clist );
SPlot2d_Curve* plotCurve = 0;
SPlot2d_Curve* tmpCurve;
- for (int i = 0; i < clist.count(); i++) {
- tmpCurve = dynamic_cast<SPlot2d_Curve*>(clist.at(i));
- if (tmpCurve && tmpCurve->hasIO() &&
- theCurve->GetEntry() != tmpCurve->getIO()->getEntry()) {
- plotCurve = tmpCurve;
- } else if (theDisplaying == VISU::eDisplayOnly) {
- aPlot->eraseCurve(clist.at(i));
+ if(theDisplaying == VISU::eErase) {
+ // 23.06.2008 skl for IPAL17672
+ for (int i = 0; i < clist.count(); i++) {
+ tmpCurve = dynamic_cast<SPlot2d_Curve*>(clist.at(i));
+ if (tmpCurve && tmpCurve->hasIO() &&
+ theCurve->GetEntry() == tmpCurve->getIO()->getEntry()) {
+ plotCurve = tmpCurve;
+ aPlot->eraseCurve(clist.at(i));
+ break;
+ }
}
+ UpdateCurve(theCurve, aPlot, plotCurve, theDisplaying);
+ }
+ else {
+ for (int i = 0; i < clist.count(); i++) {
+ tmpCurve = dynamic_cast<SPlot2d_Curve*>(clist.at(i));
+ if (tmpCurve && tmpCurve->hasIO() &&
+ theCurve->GetEntry() != tmpCurve->getIO()->getEntry()) {
+ plotCurve = tmpCurve;
+ }
+ else if (theDisplaying == VISU::eDisplayOnly) {
+ aPlot->eraseCurve(clist.at(i));
+ }
+ }
+ UpdateCurve(theCurve, aPlot, plotCurve, theDisplaying);
}
-
- UpdateCurve(theCurve, aPlot, plotCurve, theDisplaying);
aPlot->Repaint();
}