Skip to content

Commit e5ee9f7

Browse files
wonder-skmach0
authored andcommittedNov 13, 2011
Fix for a crash in projection selection
1 parent 34c3f0d commit e5ee9f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gui/qgsprojectionselector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,8 @@ void QgsProjectionSelector::coordinateSystemSelected( QTreeWidgetItem * theItem
828828
else
829829
{
830830
// Not an CRS - remove the highlight so the user doesn't get too confused
831-
theItem->setSelected( false );
831+
if ( theItem )
832+
theItem->setSelected( false );
832833
teProjection->setText( "" );
833834
}
834835
}

0 commit comments

Comments
 (0)
Please sign in to comment.