From: vtn Date: Fri, 3 Oct 2014 13:47:19 +0000 (+0400) Subject: 0002080: External 20671 Script improvement. Support of MARKS_NB = 0. X-Git-Tag: CTH_1_10_b~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0c4b790ec706596db9ff6cf189284f65da9efa0;p=modules%2Fgui.git 0002080: External 20671 Script improvement. Support of MARKS_NB = 0. --- 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 );