Skip to content

Commit 92b930a

Browse files
committed
projection selector: skip unavailable user CRSes (fixes #7377)
1 parent dcdcd12 commit 92b930a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsprojectionselector.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ QgsProjectionSelector::QgsProjectionSelector( QWidget* parent, const char *name,
7676
if ( ! crs.isValid() )
7777
{
7878
// Couldn't create from EPSG, try the Proj4 string instead
79-
if ( ! crs.createFromProj4( projectionsProj4.at( i ) ) )
79+
if ( i >= projectionsProj4.size() || !crs.createFromProj4( projectionsProj4.at( i ) ) )
8080
{
8181
// No? Skip this entry
8282
continue;

0 commit comments

Comments
 (0)