Skip to content

Commit 1e19e99

Browse files
author
jef
committed
buxfixes
- 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@9209 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 40a6a8d commit 1e19e99

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app/qgsidentifyresults.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ void QgsIdentifyResults::addDerivedAttribute( QTreeWidgetItem * fnode, QString f
164164
{
165165
QTreeWidgetItem * daRootNode;
166166

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

244243
void QgsIdentifyResults::clear()
245244
{
245+
mDerivedAttributeRootNodes.clear();
246246
lstResults->clear();
247247
}
248248

src/app/qgsmaptoolidentify.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
263263
mFeatureList.clear();
264264
QApplication::setOverrideCursor( Qt::WaitCursor );
265265

266-
layer->select( layer->pendingAllAttributesList(), r, true );
266+
layer->select( layer->pendingAllAttributesList(), r, true, true );
267267
QgsFeature f;
268268
while ( layer->getNextFeature( f ) )
269-
mFeatureList << f;
269+
mFeatureList << QgsFeature(f);
270270

271271
QApplication::restoreOverrideCursor();
272272

src/core/qgsvectorlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo
17151715

17161716
QgsFeature f;
17171717
while ( getNextFeature( f ) )
1718-
featureList << f;
1718+
featureList << QgsFeature(f);
17191719
}
17201720

17211721
QgsFeatureList::iterator select_it = featureList.begin();

0 commit comments

Comments
 (0)