We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 73e9c31 commit 63617baCopy full SHA for 63617ba
src/app/qgsnewspatialitelayerdialog.cpp
@@ -251,8 +251,12 @@ void QgsNewSpatialiteLayerDialog::on_pbnFindSRID_clicked()
251
QgsCoordinateReferenceSystem srs;
252
srs.createFromOgcWmsCrs( mySelector->selectedAuthId() );
253
bool ok;
254
- mCrsId = srs.authid().split( ':' ).at( 1 ).toInt( &ok );
255
- leSRID->setText( srs.authid() + " - " + srs.description() );
+ int crsId = srs.authid().split( ':' ).value( 1, QString::number( mCrsId ) ).toInt( &ok );
+ if ( crsId != mCrsId )
256
+ {
257
+ mCrsId = crsId;
258
+ leSRID->setText( srs.authid() + " - " + srs.description() );
259
+ }
260
}
261
delete mySelector;
262
0 commit comments