From 32559b73ce9fd41f5bdb07c1115fa5ba689f3f28 Mon Sep 17 00:00:00 2001 From: vtn Date: Tue, 29 Jul 2014 11:20:17 +0400 Subject: [PATCH] 0002080: External 20671 Script improvement. Added double values to NB_MARKERS command. --- src/Plot2d/Plot2d_ViewFrame.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.2