tr("WRN_LOGARITHMIC_RANGE"),
tr("BUT_OK"));
} else {
- SUIT_MessageBox::warning( this,
- tr("WRN_VISU"),
- tr("WRN_LOGARITHMIC_FIELD_RANGE"),
- tr("BUT_OK"));
+ if ( minVal == 0 || maxVal == 0 )
+ SUIT_MessageBox::warning( this,
+ tr("WRN_VISU"),
+ tr("WRN_LOGARITHMIC_RANGE"),
+ tr("BUT_OK"));
+ else
+ SUIT_MessageBox::warning( this,
+ tr("WRN_VISU"),
+ tr("WRN_LOGARITHMIC_FIELD_RANGE"),
+ tr("BUT_OK"));
RBIrange->setChecked(true);
changeRange(1);
}
// check if logarithmic mode is on and check imposed range to not contain negative values
if ( CBLog->isChecked() ) {
- if ( minVal <= 0.0 ) {
+ if ( minVal <= 0.0 || maxVal <= 0.0) {
if ( RBIrange->isChecked() ) {
SUIT_MessageBox::warning( this,
tr("WRN_VISU"),