Skip to content

Commit 2dc2034

Browse files
author
jef
committedDec 23, 2009
fix #2264
git-svn-id: http://svn.osgeo.org/qgis/trunk@12603 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 44efc17 commit 2dc2034

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎src/app/qgsmaptoolidentify.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ bool QgsMapToolIdentify::identifyVectorLayer( QgsVectorLayer *layer, int x, int
206206
double identifyValue = settings.value( "/Map/identifyRadius", QGis::DEFAULT_IDENTIFY_RADIUS ).toDouble();
207207
QString ellipsoid = settings.value( "/qgis/measure/ellipsoid", "WGS84" ).toString();
208208

209+
if ( identifyValue <= 0.0 )
210+
identifyValue = QGis::DEFAULT_IDENTIFY_RADIUS;
211+
209212
int featureCount = 0;
210213
const QgsFieldMap& fields = layer->pendingFields();
211214

‎src/app/qgsoptions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
5959
cbxAutoFeatureForm->setChecked( settings.value( "/Map/identifyAutoFeatureForm", false ).toBool() );
6060
double identifyValue = settings.value( "/Map/identifyRadius", QGis::DEFAULT_IDENTIFY_RADIUS ).toDouble();
6161
QgsDebugMsg( QString( "Standard Identify radius setting read from settings file: %1" ).arg( identifyValue ) );
62+
if ( identifyValue <= 0.0 )
63+
identifyValue = QGis::DEFAULT_IDENTIFY_RADIUS;
64+
spinBoxIdentifyValue->setMinimum( 0.01 );
6265
spinBoxIdentifyValue->setValue( identifyValue );
6366

6467

0 commit comments

Comments
 (0)
Please sign in to comment.