[QGIS Commit] r11244 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Aug 2 04:45:03 EDT 2009


Author: jef
Date: 2009-08-02 04:45:03 -0400 (Sun, 02 Aug 2009)
New Revision: 11244

Modified:
   trunk/qgis/src/app/qgssinglesymboldialog.cpp
Log:
fix #1805

Modified: trunk/qgis/src/app/qgssinglesymboldialog.cpp
===================================================================
--- trunk/qgis/src/app/qgssinglesymboldialog.cpp	2009-08-02 08:44:21 UTC (rev 11243)
+++ trunk/qgis/src/app/qgssinglesymboldialog.cpp	2009-08-02 08:45:03 UTC (rev 11244)
@@ -477,7 +477,7 @@
   if ( lstSymbols->isEnabled() && lstSymbols->currentItem()->data( Qt::UserRole ).toString() != sy->pointSymbolName() )
     lstSymbols->setEnabled( false );
 
-  if ( mPointSizeSpinBox->isEnabled() && mPointSizeSpinBox->value() != sy->pointSize() )
+  if ( mPointSizeSpinBox->isEnabled() && !doubleNear( mPointSizeSpinBox->value(), sy->pointSize() ) )
     mPointSizeSpinBox->setEnabled( false );
 
   if ( mPointSizeUnitsCheckBox->isEnabled() && mPointSizeUnitsCheckBox->isChecked() != sy->pointSizeUnits() )
@@ -495,7 +495,7 @@
        mSymbolComboBox->itemData( mSymbolComboBox->currentIndex() ).toInt() != sy->symbolField() )
     mSymbolComboBox->setEnabled( false );
 
-  if ( outlinewidthspinbox->isEnabled() && outlinewidthspinbox->value() != sy->pen().widthF() )
+  if ( outlinewidthspinbox->isEnabled() && !doubleNear( outlinewidthspinbox->value(), sy->pen().widthF() ) )
     outlinewidthspinbox->setEnabled( false );
 
   if ( btnFillColor->isEnabled() &&  btnFillColor->color() != sy->brush().color() )



More information about the QGIS-commit mailing list