Showing with 5 additions and 5 deletions.
  1. +1 −0 CMakeLists.txt
  2. +1 −1 src/core/qgspallabeling.cpp
  3. +0 −1 src/core/qgsvectorlayer.cpp
  4. +1 −2 src/core/qgsvectorlayerfeatureiterator.cpp
  5. +2 −1 src/providers/postgres/qgspostgresfeatureiterator.cpp
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ IF (PEDANTIC)
# disable warnings
ADD_DEFINITIONS( /wd4100 ) # unused formal parameters
ADD_DEFINITIONS( /wd4127 ) # constant conditional expressions (used in Qt template classes)
ADD_DEFINITIONS( /wd4505 ) # unreferenced local function has been removed (QgsRasterDataProvider::extent)
ADD_DEFINITIONS( /wd4510 ) # default constructor could not be generated (sqlite3_index_info, QMap)
ADD_DEFINITIONS( /wd4512 ) # assignment operator could not be generated (sqlite3_index_info)
ADD_DEFINITIONS( /wd4610 ) # user defined constructor required (sqlite3_index_info)
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgspallabeling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ bool QgsPalLabeling::willUseLayer( QgsVectorLayer* layer )

int QgsPalLabeling::prepareLayer( QgsVectorLayer* layer, QSet<int>& attrIndices, QgsRenderContext& ctx )
{
QgsDebugMsg( "PREPARE LAYER" );
QgsDebugMsg( "PREPARE LAYER " + layer->id() );
Q_ASSERT( mMapRenderer != NULL );

// start with a temporary settings class, find out labeling info
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,6 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
bool labeling = false;
prepareLabelingAndDiagrams( rendererContext, attributes, labeling );


try
{
QgsFeatureIterator fit = getFeatures( QgsFeatureRequest()
Expand Down
3 changes: 1 addition & 2 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ void QgsVectorLayerFeatureIterator::addJoinedAttributes( QgsFeature &f )
for ( ; joinIt != mFetchJoinInfo.constEnd(); ++joinIt )
{
const FetchJoinInfo& info = joinIt.value();
QgsVectorLayer* joinLayer = joinIt.key();
Q_ASSERT( joinLayer );
Q_ASSERT( joinIt.key() );

QVariant targetFieldValue = f.attribute( info.targetField );
if ( !targetFieldValue.isValid() )
Expand Down
3 changes: 2 additions & 1 deletion src/providers/postgres/qgspostgresfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
// make sure that only one iterator is active
if ( P->mActiveIterator )
P->mActiveIterator->close();
P->mActiveIterator = this;

mCursorName = QString( "qgisf%1" ).arg( P->mProviderId );

Expand Down Expand Up @@ -79,6 +78,8 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
return;
}

P->mActiveIterator = this;

mFetched = 0;
}

Expand Down