Skip to content

Commit

Permalink
feature action: fix crash at launch
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 20, 2014
1 parent 9f3e8f4 commit c22c0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8778,7 +8778,7 @@ void QgisApp::refreshActionFeatureAction()
{
QgsMapLayer* layer = activeLayer();

if ( layer->type() != QgsMapLayer::VectorLayer )
if ( layer == 0 || layer->type() != QgsMapLayer::VectorLayer )
{
return;
}
Expand Down

0 comments on commit c22c0d9

Please sign in to comment.