Correction in GraphicsItem.deviceTransform() during export.

This fixes some (all?) issues with exporting ScatterPlotItem.
This commit is contained in:
Luke Campagnola 2014-07-29 23:57:34 -04:00
parent 74b5ba6f7e
commit 55a07b0bec
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class GraphicsItem(object):
Extends deviceTransform to automatically determine the viewportTransform.
"""
if self._exportOpts is not False and 'painter' in self._exportOpts: ## currently exporting; device transform may be different.
return self._exportOpts['painter'].deviceTransform()
return self._exportOpts['painter'].deviceTransform() * self.sceneTransform()
if viewportTransform is None:
view = self.getViewWidget()