diff options
Diffstat (limited to 'share/extensions/plotter.py')
| -rw-r--r-- | share/extensions/plotter.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/share/extensions/plotter.py b/share/extensions/plotter.py index 84027b132..67d40a92a 100644 --- a/share/extensions/plotter.py +++ b/share/extensions/plotter.py @@ -191,20 +191,20 @@ class MyEffect(inkex.Effect): fileName = self.document.getroot().xpath('//@sodipodi:docname', namespaces=inkex.NSS) if fileName: inkex.errormsg(' Filename: ' + fileName[0]) - inkex.errormsg(' Document unit: ' + debugObject.documentUnit) - inkex.errormsg(' Width: ' + str(debugObject.debugValues[0]) + ' ' + debugObject.documentUnit) - inkex.errormsg(' Height: ' + str(debugObject.debugValues[1]) + ' ' + debugObject.documentUnit) - if debugObject.debugValues[2] == 0: + inkex.errormsg(' Document unit: ' + self.getDocumentUnit()) + inkex.errormsg(' Width: ' + str(debugObject.debugValues['docWidth']) + ' ' + self.getDocumentUnit()) + inkex.errormsg(' Height: ' + str(debugObject.debugValues['docHeight']) + ' ' + self.getDocumentUnit()) + if debugObject.debugValues['viewBoxWidth'] == "-": inkex.errormsg(' Viewbox Width: -') inkex.errormsg(' Viewbox Height: -') else: - inkex.errormsg(' Viewbox Width: ' + str(debugObject.debugValues[2]) + ' ' + debugObject.documentUnit) - inkex.errormsg(' Viewbox Height: ' + str(debugObject.debugValues[3]) + ' ' + debugObject.documentUnit) + inkex.errormsg(' Viewbox Width: ' + str(self.unittouu(self.addDocumentUnit(debugObject.debugValues['viewBoxWidth']))) + ' ' + self.getDocumentUnit()) + inkex.errormsg(' Viewbox Height: ' + str(self.unittouu(self.addDocumentUnit(debugObject.debugValues['viewBoxHeight']))) + ' ' + self.getDocumentUnit()) inkex.errormsg("\n" + self.options.commandLanguage + " properties:\n") - inkex.errormsg(' Drawing width: ' + str(debugObject.debugValues[6]) + ' ' + debugObject.documentUnit) - inkex.errormsg(' Drawing height: ' + str(debugObject.debugValues[7]) + ' ' + debugObject.documentUnit) - inkex.errormsg(' Drawing width: ' + str(debugObject.debugValues[4]) + ' plotter steps') - inkex.errormsg(' Drawing height: ' + str(debugObject.debugValues[5]) + ' plotter steps') + inkex.errormsg(' Drawing width: ' + str(self.unittouu(self.addDocumentUnit(str(debugObject.debugValues['drawingWidthUU'])))) + ' ' + self.getDocumentUnit()) + inkex.errormsg(' Drawing height: ' + str(self.unittouu(self.addDocumentUnit(str(debugObject.debugValues['drawingHeightUU'])))) + ' ' + self.getDocumentUnit()) + inkex.errormsg(' Drawing width: ' + str(debugObject.debugValues['drawingWidth']) + ' plotter steps') + inkex.errormsg(' Drawing height: ' + str(debugObject.debugValues['drawingHeight']) + ' plotter steps') inkex.errormsg(' Offset X: ' + str(debugObject.offsetX) + ' plotter steps') inkex.errormsg(' Offset Y: ' + str(debugObject.offsetX) + ' plotter steps') inkex.errormsg(' Overcut: ' + str(debugObject.overcut) + ' plotter steps') |
