Skip to content

Commit

Permalink
fix crash on identify with hidden attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 24, 2014
1 parent 43dfb9c commit 31bb269
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/app/qgsidentifyresultsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] );

Expand Down

0 comments on commit 31bb269

Please sign in to comment.