Fix fit XML export
This commit is contained in:
@@ -174,7 +174,7 @@ class CopySelectDialog(wx.Dialog):
|
||||
|
||||
def exportXml(self, options, callback):
|
||||
fit = getFit(self.mainFrame.getActiveFit())
|
||||
Port.exportXml(None, fit, callback)
|
||||
Port.exportXml([fit], None, callback)
|
||||
|
||||
def exportMultiBuy(self, options, callback):
|
||||
fit = getFit(self.mainFrame.getActiveFit())
|
||||
@@ -182,4 +182,4 @@ class CopySelectDialog(wx.Dialog):
|
||||
|
||||
def exportEfs(self, options, callback):
|
||||
fit = getFit(self.mainFrame.getActiveFit())
|
||||
EfsPort.exportEfs(fit, 0, callback)
|
||||
EfsPort.exportEfs(fit, 0, callback)
|
||||
|
||||
@@ -418,7 +418,7 @@ class MainFrame(wx.Frame):
|
||||
format_ = dlg.GetFilterIndex()
|
||||
path = dlg.GetPath()
|
||||
if format_ == 0:
|
||||
output = Port.exportXml(None, fit)
|
||||
output = Port.exportXml([fit], None)
|
||||
if '.' not in os.path.basename(path):
|
||||
path += ".xml"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user