Skip to content

Commit

Permalink
Fix for segfault when changing crs and tabs in projection selector
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Nov 30, 2011
1 parent 241b0b0 commit 70e2dc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgsprojectionselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,10 @@ void QgsProjectionSelector::on_cbxHideDeprecated_stateChanged()

void QgsProjectionSelector::on_lstRecent_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous )
{
setSelectedCrsId( current->text( QGIS_CRS_ID_COLUMN ).toLong() );
if ( current )
{
setSelectedCrsId( current->text( QGIS_CRS_ID_COLUMN ).toLong() );
}
}

void QgsProjectionSelector::on_pbnFind_clicked()
Expand Down

0 comments on commit 70e2dc3

Please sign in to comment.