From: vtn Date: Tue, 29 Jul 2014 07:20:17 +0000 (+0400) Subject: 0002080: External 20671 Script improvement. Added double values to NB_MARKERS command. X-Git-Tag: CTH_1_10_a X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32559b73ce9fd41f5bdb07c1115fa5ba689f3f28;p=modules%2Fgui.git 0002080: External 20671 Script improvement. Added double values to NB_MARKERS command. --- diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index dbae00e07..a6fd03948 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -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 );