Skip to content

Commit

Permalink
Code style cleanup only
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11925 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 6, 2009
1 parent 431d695 commit d8f14ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4604,11 +4604,15 @@ void QgisApp::toggleEditing()
void QgisApp::toggleEditing( QgsMapLayer *layer )
{
if ( !layer )
{
return;
}

QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
if ( !vlayer )
{
return;
}

if ( !vlayer->isEditable() )
{
Expand Down

0 comments on commit d8f14ba

Please sign in to comment.