Skip to content

Commit

Permalink
Fix geometry generator symbol tests on hidpi displays
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 11, 2021
1 parent a2e9448 commit ca71c92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/python/test_qgsgeometrygeneratorsymbollayer.py
Expand Up @@ -282,6 +282,8 @@ def test_no_feature(self):

image = QImage(400, 400, QImage.Format_RGB32)
image.fill(QColor(255, 255, 255))
image.setDotsPerMeterX(int(96 / 25.4 * 1000))
image.setDotsPerMeterY(int(96 / 25.4 * 1000))
painter = QPainter(image)

context = QgsRenderContext.fromQPainter(painter)
Expand All @@ -308,6 +310,8 @@ def test_no_feature_coordinate_transform(self):
symbol.changeSymbolLayer(0, buffer_layer)

image = QImage(400, 400, QImage.Format_RGB32)
image.setDotsPerMeterX(int(96 / 25.4 * 1000))
image.setDotsPerMeterY(int(96 / 25.4 * 1000))
image.fill(QColor(255, 255, 255))
painter = QPainter(image)

Expand Down

0 comments on commit ca71c92

Please sign in to comment.