Skip to content

Commit

Permalink
Fix crash when using interpolated line symbol layer with non-vector
Browse files Browse the repository at this point in the history
layer symbols
  • Loading branch information
nyalldawson committed Sep 10, 2021
1 parent 3f3e891 commit e0c5cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/symbology/qgsinterpolatedlinesymbollayerwidget.cpp
Expand Up @@ -223,7 +223,7 @@ void QgsInterpolatedLineSymbolLayerWidget::reloadMinMaxWidthFromLayer()
return;
}

if ( !mLayer )
if ( !mLayer || !vectorLayer() )
{
apply();
return;
Expand Down Expand Up @@ -287,7 +287,7 @@ void QgsInterpolatedLineSymbolLayerWidget::reloadMinMaxColorFromLayer()
return;
}

if ( !mLayer )
if ( !mLayer || !vectorLayer() )
{
apply();
return;
Expand Down

0 comments on commit e0c5cce

Please sign in to comment.