Skip to content

Commit

Permalink
Fixes an error when writing additional text rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed May 7, 2021
1 parent aa3eebf commit 132b755
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QGISStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ export class QGISStyleParser implements StyleParser {
};

if (textSymbolizer.haloColor) {
textRule.settings['text-buffer'] = [{
textRule.settings[0]['text-buffer'] = [{
$: {
bufferSize: textSymbolizer.haloWidth || `0`,
bufferColor: this.qmlColorFromHexAndOpacity(textSymbolizer.haloColor, 1)
Expand All @@ -971,7 +971,6 @@ export class QGISStyleParser implements StyleParser {
if (rule.filter) {
textRule.$.filter = this.cqlParser.write(rule.filter);
}

qmlRuleList.push(textRule);
}
});
Expand Down

0 comments on commit 132b755

Please sign in to comment.