Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 20, 2015
1 parent 106358c commit cfb4b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgstransaction.cpp
Expand Up @@ -110,7 +110,7 @@ bool QgsTransaction::addLayer( const QString& layerId )
}

//test if provider supports transactions
if ( !layer->dataProvider() || !layer->dataProvider()->capabilities() & QgsVectorDataProvider::TransactionSupport )
if ( !layer->dataProvider() || ( layer->dataProvider()->capabilities() & QgsVectorDataProvider::TransactionSupport ) == 0 )
{
return false;
}
Expand Down

0 comments on commit cfb4b33

Please sign in to comment.