Skip to content

Commit

Permalink
Merge pull request #4834 from camptocamp/image-dpi-qgis-23
Browse files Browse the repository at this point in the history
Don't print QGIS layer legend URL at 300 DPI
  • Loading branch information
sbrunner committed Apr 16, 2019
2 parents f09b85d + 755f2ea commit 617beed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contribs/gmf/src/print/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,14 +1176,16 @@ exports.Controller_ = class {
this.gmfLegendOptions_.params[layer.getSource().serverType_]
);
}
const type = icons ? 'image' : source.serverType_;

// Don't add classes without legend url or from layers without any
// active name.
if (icons && name.length !== 0) {
classes.push(Object.assign({
'name': this.gmfLegendOptions_.label[layer.getSource().serverType_] === false ? '' :
'name': this.gmfLegendOptions_.label[type] === false ? '' :
gettextCatalog.getString(name),
'icons': [icons]
}, layer.getSource().serverType_ === 'qgis' ? {
}, type === 'qgis' ? {
'dpi': dpi,
} : {}));
}
Expand Down

0 comments on commit 617beed

Please sign in to comment.