]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for catdev CTH_1_9_2
authorsln <sln@opencascade.com>
Tue, 17 Sep 2013 06:28:22 +0000 (06:28 +0000)
committersln <sln@opencascade.com>
Tue, 17 Sep 2013 06:28:22 +0000 (06:28 +0000)
GM:
Open Â« Test_log.hdf Â» on ftp
Post processing
Select â\80\9cTBEHâ\80\9d
Select â\80\9cLIQFLOWâ\80\9d point 1
Display
Change vertical axis by logarithmic
Remove points
V1.9a aborts.

src/Plot2d/Plot2d_ViewFrame.cxx

index cfe758f606d839e539483ce16040e64049a706b1..94bf51630a6c355d775b19578b60c2c5521b6853 100755 (executable)
@@ -1541,9 +1541,9 @@ void Plot2d_ViewFrame::cutCurveNonPositiveValues( const bool theIsXAxis,
   {
     if( Plot2d_Curve* aCurve = it.value() )
     {
-      pointList& aPointList = aCurve->getPointList();
-      pointList::iterator pIt, pItEnd = aPointList.end();
-      for( pIt = aPointList.begin(); pIt != pItEnd; )
+      QList<Plot2d_Point>& aPointList = aCurve->getPointList();
+      QList<Plot2d_Point>::iterator pIt;
+      for( pIt = aPointList.begin(); pIt != aPointList.end(); )
       {
         Plot2d_Point& aPoint = *pIt;
         double& value = theIsXAxis ? aPoint.x : aPoint.y;