Skip to content
Permalink
Browse files
projection selector: skip unavailable user CRSes (fixes #7377)
  • Loading branch information
jef-n committed Jun 30, 2013
1 parent dcdcd12 commit 92b930ac4712975ab93825173a6799081cacfe8a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsprojectionselector.cpp
@@ -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;

0 comments on commit 92b930a

Please sign in to comment.