]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0002080: External 20671 Script improvement. Support of MARKS_NB = 0.
authorvtn <vtn@opencascade.com>
Fri, 3 Oct 2014 13:47:19 +0000 (17:47 +0400)
committervtn <vtn@opencascade.com>
Fri, 3 Oct 2014 13:47:19 +0000 (17:47 +0400)
src/Plot2d/Plot2d_SetupCurvesDlg.cxx
src/Plot2d/Plot2d_ViewFrame.cxx

index 58d0f9d5c3bad52f0e847b2a16ae9dd102c99a77..fadac782c80c9895384ccb9a6b027fc24a3dd6e7 100755 (executable)
@@ -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" ) );
index c1b269078204cfddc4e1745612a8424b047eac4e..0eeebf1bf839e7523cfb94c925b4f965e7c3bcee 100755 (executable)
@@ -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 );