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" ) );
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 );