dump ExportDialog.exporterParameters, b/c it prevents correct aspect ratio on image export (close #1087)

This commit is contained in:
Paul Müller 2019-12-03 11:51:44 +01:00
parent db483f8ec2
commit 57909aab45
No known key found for this signature in database
GPG Key ID: 37E451377BE89B67

View File

@ -22,8 +22,6 @@ class ExportDialog(QtGui.QWidget):
self.shown = False
self.currentExporter = None
self.scene = scene
self.exporterParameters = {}
self.selectBox = QtGui.QGraphicsRectItem()
self.selectBox.setPen(fn.mkPen('y', width=3, style=QtCore.Qt.DashLine))
@ -124,16 +122,7 @@ class ExportDialog(QtGui.QWidget):
expClass = self.exporterClasses[str(item.text())]
exp = expClass(item=self.ui.itemTree.currentItem().gitem)
if prev:
oldtext = str(prev.text())
self.exporterParameters[oldtext] = self.currentExporter.parameters()
newtext = str(item.text())
if newtext in self.exporterParameters.keys():
params = self.exporterParameters[newtext]
exp.params = params
else:
params = exp.parameters()
self.exporterParameters[newtext] = params
params = exp.parameters()
if params is None:
self.ui.paramTree.clear()