Skip to content

Commit cd39798

Browse files
author
Hugo Mercier
committedJun 29, 2018
Fix access to rule settings
1 parent 569db8e commit cd39798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsrulebasedlabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ void QgsRuleBasedLabeling::toSld( QDomNode &parent, const QgsStringMap &props )
499499
{
500500
QgsPalLayerSettings *settings = rule->settings();
501501

502-
if ( settings->drawLabels )
502+
if ( settings && settings->drawLabels )
503503
{
504504
QDomDocument doc = parent.ownerDocument();
505505

0 commit comments

Comments
 (0)
Please sign in to comment.