Skip to content
Permalink
Browse files
Fix PyQgsMapUnitScale test under qt5
  • Loading branch information
nyalldawson committed Sep 5, 2016
1 parent fd0d804 commit e54f9be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
@@ -1,7 +1,6 @@
PyQgsComposerPicture
PyQgsJSONUtils
PyQgsLocalServer
PyQgsMapUnitScale
PyQgsPalLabelingServer
PyQgsServer
PyQgsServerAccessControl
@@ -78,6 +78,7 @@ def testMapUnitsPerPixel(self):
ms = QgsMapSettings()
ms.setExtent(QgsRectangle(0, 0, 100, 100))
ms.setOutputSize(QSize(100, 50))
ms.setOutputDpi(75)
r = QgsRenderContext.fromMapSettings(ms)

# renderer scale should be about 1:291937841

0 comments on commit e54f9be

Please sign in to comment.