We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcdcd12 commit 92b930aCopy full SHA for 92b930a
src/gui/qgsprojectionselector.cpp
@@ -76,7 +76,7 @@ QgsProjectionSelector::QgsProjectionSelector( QWidget* parent, const char *name,
76
if ( ! crs.isValid() )
77
{
78
// Couldn't create from EPSG, try the Proj4 string instead
79
- if ( ! crs.createFromProj4( projectionsProj4.at( i ) ) )
+ if ( i >= projectionsProj4.size() || !crs.createFromProj4( projectionsProj4.at( i ) ) )
80
81
// No? Skip this entry
82
continue;
0 commit comments