Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
jef-n committed Oct 6, 2013
1 parent 6b99d0d commit feefffd6c4b19ae9349dd27b9168102d1f599535
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/core/composer/qgscomposition.cpp
  2. +3 −3 src/core/qgsvectorlayereditutils.cpp
@@ -963,7 +963,7 @@ void QgsComposition::selectNextByZOrder( ZValueDirection direction )
}

//select item with target z value
QgsComposerItem* selectedItem;
QgsComposerItem* selectedItem = 0;
switch ( direction )
{
case QgsComposition::ZValueBelow:
@@ -352,7 +352,7 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
featureList << QgsFeature( f );
}

int addPartRet;
int addPartRet = 0;
foreach ( const QgsFeature& feat, featureList )
{
QList<QgsGeometry*> newGeometries;
@@ -364,14 +364,14 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
for ( int i = 0; i < newGeometries.size(); ++i )
{
addPartRet = feat.geometry()->addPart( newGeometries.at( i ) );
if ( addPartRet != 0 )
if ( addPartRet )
break;
}

// For test only: Exception already thrown here...
// feat.geometry()->asWkb();

if ( addPartRet == 0 )
if ( !addPartRet )
{
L->editBuffer()->changeGeometry( feat.id(), feat.geometry() );
}

0 comments on commit feefffd

Please sign in to comment.
You can’t perform that action at this time.