Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix access to rule settings
  • Loading branch information
Hugo Mercier committed Jul 2, 2018
1 parent fd4888b commit 026ddf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsrulebasedlabeling.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 026ddf3

Please sign in to comment.