Skip to content
Permalink
Browse files

Fix crash when opening vector properties on geometryless layer

  • Loading branch information
nyalldawson committed Apr 30, 2018
1 parent aa44334 commit 5017e94b38fa3d3cb76e00cdac729bb152e1ac1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsvectorlayerlegendwidget.cpp
@@ -90,7 +90,7 @@ void QgsVectorLayerLegendWidget::populateLegendTreeView( const QHash<QString, QS
model->setColumnCount( 2 );
model->setHorizontalHeaderLabels( QStringList() << tr( "Symbol" ) << tr( "Text" ) );

const QgsLegendSymbolList lst = mLayer->renderer()->legendSymbolItems();
const QgsLegendSymbolList lst = mLayer->renderer() ? mLayer->renderer()->legendSymbolItems() : QgsLegendSymbolList();
for ( const QgsLegendSymbolItem &symbolItem : lst )
{
if ( !symbolItem.symbol() )

0 comments on commit 5017e94

Please sign in to comment.
You can’t perform that action at this time.