Skip to content

Commit cfb4b33

Browse files
committedJan 20, 2015
fix warning
1 parent 106358c commit cfb4b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgstransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ bool QgsTransaction::addLayer( const QString& layerId )
110110
}
111111

112112
//test if provider supports transactions
113-
if ( !layer->dataProvider() || !layer->dataProvider()->capabilities() & QgsVectorDataProvider::TransactionSupport )
113+
if ( !layer->dataProvider() || ( layer->dataProvider()->capabilities() & QgsVectorDataProvider::TransactionSupport ) == 0 )
114114
{
115115
return false;
116116
}

0 commit comments

Comments
 (0)
Please sign in to comment.