mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
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
This commit is contained in:
parent
40a6a8dac0
commit
1e19e99c73
@ -164,8 +164,7 @@ void QgsIdentifyResults::addDerivedAttribute( QTreeWidgetItem * fnode, QString f
|
|||||||
{
|
{
|
||||||
QTreeWidgetItem * daRootNode;
|
QTreeWidgetItem * daRootNode;
|
||||||
|
|
||||||
// Determine if this is the first derived attribute for this
|
// Determine if this is the first derived attribute for this feature or not
|
||||||
// feature or not
|
|
||||||
if ( mDerivedAttributeRootNodes.find( fnode ) != mDerivedAttributeRootNodes.end() )
|
if ( mDerivedAttributeRootNodes.find( fnode ) != mDerivedAttributeRootNodes.end() )
|
||||||
{
|
{
|
||||||
// Reuse existing derived-attribute root node
|
// Reuse existing derived-attribute root node
|
||||||
@ -243,6 +242,7 @@ void QgsIdentifyResults::expandColumnsToFit()
|
|||||||
|
|
||||||
void QgsIdentifyResults::clear()
|
void QgsIdentifyResults::clear()
|
||||||
{
|
{
|
||||||
|
mDerivedAttributeRootNodes.clear();
|
||||||
lstResults->clear();
|
lstResults->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,10 +263,10 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
|
|||||||
mFeatureList.clear();
|
mFeatureList.clear();
|
||||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||||
|
|
||||||
layer->select( layer->pendingAllAttributesList(), r, true );
|
layer->select( layer->pendingAllAttributesList(), r, true, true );
|
||||||
QgsFeature f;
|
QgsFeature f;
|
||||||
while ( layer->getNextFeature( f ) )
|
while ( layer->getNextFeature( f ) )
|
||||||
mFeatureList << f;
|
mFeatureList << QgsFeature(f);
|
||||||
|
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
|
||||||
|
@ -1715,7 +1715,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo
|
|||||||
|
|
||||||
QgsFeature f;
|
QgsFeature f;
|
||||||
while ( getNextFeature( f ) )
|
while ( getNextFeature( f ) )
|
||||||
featureList << f;
|
featureList << QgsFeature(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsFeatureList::iterator select_it = featureList.begin();
|
QgsFeatureList::iterator select_it = featureList.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user