Skip to content
Permalink
Browse files

Fix access to rule settings

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Jun 29, 2018
1 parent 569db8e commit cd39798b4d78477e40be6b49002663eaee97c37f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsrulebasedlabeling.cpp
@@ -499,7 +499,7 @@ void QgsRuleBasedLabeling::toSld( QDomNode &parent, const QgsStringMap &props )
{
QgsPalLayerSettings *settings = rule->settings();

if ( settings->drawLabels )
if ( settings && settings->drawLabels )
{
QDomDocument doc = parent.ownerDocument();

0 comments on commit cd39798

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