Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inconcequent use of DPI at generating the WMS legend
- Consider DPI of QgsWmsRenderContext what is the OGC default (0.28 mm per pixel) or the passed WMS parameter - this is done by creating the QgsRenderContext by the mapSettings (with BBOX) or applying the dotsPerMm to the scaleFactor. - Additionally the image size needs to be calculated according to the QgsRenderContext now, what means it needs to be generated before. - The QPainter needs to be applied after to the context (since it's not passed by creating the context anymore).
- Loading branch information
1 parent
50adba3
commit f926eb4
Showing
1 changed file
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters