Skip to content

Commit

Permalink
buxfixes
Browse files Browse the repository at this point in the history
- use useIntersects in identify (fixes #1251)
- clear node list of identify results on new identify (fixes #1252)
- use feature copies for split features and identify


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9209 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 29, 2008
1 parent b17298b commit 90d77ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsidentifyresults.cpp
Expand Up @@ -164,8 +164,7 @@ void QgsIdentifyResults::addDerivedAttribute( QTreeWidgetItem * fnode, QString f
{
QTreeWidgetItem * daRootNode;

// Determine if this is the first derived attribute for this
// feature or not
// Determine if this is the first derived attribute for this feature or not
if ( mDerivedAttributeRootNodes.find( fnode ) != mDerivedAttributeRootNodes.end() )
{
// Reuse existing derived-attribute root node
Expand Down Expand Up @@ -243,6 +242,7 @@ void QgsIdentifyResults::expandColumnsToFit()

void QgsIdentifyResults::clear()
{
mDerivedAttributeRootNodes.clear();
lstResults->clear();
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolidentify.cpp
Expand Up @@ -263,10 +263,10 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
mFeatureList.clear();
QApplication::setOverrideCursor( Qt::WaitCursor );

layer->select( layer->pendingAllAttributesList(), r, true );
layer->select( layer->pendingAllAttributesList(), r, true, true );
QgsFeature f;
while ( layer->getNextFeature( f ) )
mFeatureList << f;
mFeatureList << QgsFeature(f);

QApplication::restoreOverrideCursor();

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -1715,7 +1715,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo

QgsFeature f;
while ( getNextFeature( f ) )
featureList << f;
featureList << QgsFeature(f);
}

QgsFeatureList::iterator select_it = featureList.begin();
Expand Down

0 comments on commit 90d77ed

Please sign in to comment.