File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ void QgsSingleSymbolDialog::updateSet( const QgsSymbol *sy )
477
477
if ( lstSymbols->isEnabled () && lstSymbols->currentItem ()->data ( Qt::UserRole ).toString () != sy->pointSymbolName () )
478
478
lstSymbols->setEnabled ( false );
479
479
480
- if ( mPointSizeSpinBox ->isEnabled () && mPointSizeSpinBox ->value () != sy->pointSize () )
480
+ if ( mPointSizeSpinBox ->isEnabled () && ! doubleNear ( mPointSizeSpinBox ->value (), sy->pointSize () ) )
481
481
mPointSizeSpinBox ->setEnabled ( false );
482
482
483
483
if ( mPointSizeUnitsCheckBox ->isEnabled () && mPointSizeUnitsCheckBox ->isChecked () != sy->pointSizeUnits () )
@@ -495,7 +495,7 @@ void QgsSingleSymbolDialog::updateSet( const QgsSymbol *sy )
495
495
mSymbolComboBox ->itemData ( mSymbolComboBox ->currentIndex () ).toInt () != sy->symbolField () )
496
496
mSymbolComboBox ->setEnabled ( false );
497
497
498
- if ( outlinewidthspinbox->isEnabled () && outlinewidthspinbox->value () != sy->pen ().widthF () )
498
+ if ( outlinewidthspinbox->isEnabled () && ! doubleNear ( outlinewidthspinbox->value (), sy->pen ().widthF () ) )
499
499
outlinewidthspinbox->setEnabled ( false );
500
500
501
501
if ( btnFillColor->isEnabled () && btnFillColor->color () != sy->brush ().color () )
You can’t perform that action at this time.
0 commit comments