1
0
forked from IPKM/nmreval

saving removes bad characters

This commit is contained in:
Dominik Demuth
2023-01-26 19:30:39 +01:00
parent af313c7a58
commit 0eb0a4be77
3 changed files with 17 additions and 9 deletions

View File

@ -578,16 +578,16 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
if suffix == '.pdf':
from ..io.exporters import PDFPrintExporter
PDFPrintExporter(self.graphic).export(outfile)
PDFPrintExporter(self.graphic).export(str(outfile))
elif suffix == '.svg':
from pyqtgraph.exporters import SVGExporter
SVGExporter(self.scene).export(outfile)
SVGExporter(self.scene).export(str(outfile))
else:
from pyqtgraph.exporters import ImageExporter
ImageExporter(self.scene).export(outfile)
ImageExporter(self.scene).export(str(outfile))
self.set_color(foreground=fg_color, background=bg_color)