Skip to content

Commit

Permalink
Fix crash if adding sublayers via plugin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 17, 2014
1 parent d39d2a7 commit e6e0614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7322,7 +7322,7 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
// The first layer loaded is not useful in that case. The user can select it in
// the list if he wants to load it.
delete layer;

layer = 0;
}
else
{
Expand Down

0 comments on commit e6e0614

Please sign in to comment.