Skip to content
Permalink
Browse files
fix crash on identify with hidden attributes
  • Loading branch information
jef-n committed May 24, 2014
1 parent 43dfb9c commit 31bb2690594fc517e949d6ece3d61fd6ce9c60cc
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/app/qgsidentifyresultsdialog.cpp
@@ -408,12 +408,11 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat

attrItem->setData( 1, Qt::UserRole, value );


const QString widgetType = vlayer->editorWidgetV2( i );

if ( widgetType == "Hidden" )
if ( vlayer->editorWidgetV2( i ) == "Hidden" )
{
delete attrItem;
continue;
continue;
}

value = representValue( vlayer, fields[i].name(), attrs[i] );

0 comments on commit 31bb269

Please sign in to comment.