From a0c4b790ec706596db9ff6cf189284f65da9efa0 Mon Sep 17 00:00:00 2001 From: vtn Date: Fri, 3 Oct 2014 17:47:19 +0400 Subject: [PATCH] 0002080: External 20671 Script improvement. Support of MARKS_NB = 0. --- src/Plot2d/Plot2d_SetupCurvesDlg.cxx | 2 +- src/Plot2d/Plot2d_ViewFrame.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plot2d/Plot2d_SetupCurvesDlg.cxx b/src/Plot2d/Plot2d_SetupCurvesDlg.cxx index 58d0f9d5c..fadac782c 100755 --- a/src/Plot2d/Plot2d_SetupCurvesDlg.cxx +++ b/src/Plot2d/Plot2d_SetupCurvesDlg.cxx @@ -383,7 +383,7 @@ bool Plot2d_SetupCurvesDlg::acceptData() const QString aStr = it ? it->text() : ""; bool isOk = false; double nbMarkers = aStr.toDouble( &isOk ); - if ( !isOk || nbMarkers<= 0 ) + if ( !isOk || nbMarkers< 0 ) { SUIT_MessageBox::information( (QWidget*)this, tr( "PLOT2D_INSUFFICIENT_DATA" ), tr( "PLOT2D_ENTER_VALID_DATA" ), tr( "BUT_OK" ) ); diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index c1b269078..0eeebf1bf 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -1962,7 +1962,7 @@ void Plot2d_PlotCurve::drawSymbols( QPainter *p, const QwtSymbol &symbol, double u1 = xMap.transform( x( i ) ); double v1 = yMap.transform( y( i ) ); - if ( i == to && myNbMarkers > 0 ) + if ( (i == from || i == to) && myNbMarkers >= 0 ) { rect.moveCenter( QPoint( u1, v1 ) ); symbol.draw( p, rect ); -- 2.39.2