]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0002080: External 20671 Script improvement. Added double values to NB_MARKERS command. CTH_1_10_a
authorvtn <vtn@opencascade.com>
Tue, 29 Jul 2014 07:20:17 +0000 (11:20 +0400)
committervtn <vtn@opencascade.com>
Tue, 29 Jul 2014 07:20:17 +0000 (11:20 +0400)
src/Plot2d/Plot2d_ViewFrame.cxx

index dbae00e077b189cd73fd771f3bc824c0a70b0bb0..a6fd03948da87ff61ff1cfe10f972d0e05566095 100755 (executable)
@@ -1971,7 +1971,9 @@ void Plot2d_PlotCurve::drawSymbols( QPainter *p, const QwtSymbol &symbol,
         double u = u0 + dX * aTail;
         double v = v0 + dY * aTail;
 
-        while ( aTail >= 0 && u <= u1 && v <= v1 )
+        while ( aTail >= 0 &&
+          ( ( dX >= 0 && u <= u1 ) || ( dX <= 0 && u1 <= u ) ) &&
+          ( ( dY >= 0 && v <= v1 ) || ( dY <= 0 && v1 <= v ) )    )
         {
           rect.moveCenter( QPoint( u, v ) );
           symbol.draw( p, rect );