Skip to content

Commit

Permalink
projection selector: skip unavailable user CRSes (fixes #7377)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 30, 2013
1 parent dcdcd12 commit 92b930a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsprojectionselector.cpp
Expand Up @@ -76,7 +76,7 @@ QgsProjectionSelector::QgsProjectionSelector( QWidget* parent, const char *name,
if ( ! crs.isValid() )
{
// Couldn't create from EPSG, try the Proj4 string instead
if ( ! crs.createFromProj4( projectionsProj4.at( i ) ) )
if ( i >= projectionsProj4.size() || !crs.createFromProj4( projectionsProj4.at( i ) ) )
{
// No? Skip this entry
continue;
Expand Down

0 comments on commit 92b930a

Please sign in to comment.