dump ExportDialog.exporterParameters, b/c it prevents correct aspect ratio on image export (close #1087)
This commit is contained in:
parent
db483f8ec2
commit
57909aab45
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user