~ubuntu-branches/debian/sid/inkscape/sid

« back to all changes in this revision

Viewing changes to share/extensions/hpgl_output.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-06-21 15:13:32 UTC
  • mfrom: (10.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130621151332-uo22shomzjut843h
Tags: 0.48.4-1
* Upload to unstable
* debian/control: added myself to Uploaders
* debian/patches/: patchset updated
  - 04-Fix_FTBFS_on_gcc-4.8.patch added (Closes: #701297)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        mirror = 1.0
100
100
        if self.options.mirror:
101
101
            mirror = -1.0
102
 
            if self.document.getroot().get('height'):
103
 
                y0 -= float(self.document.getroot().get('height'))
 
102
            if inkex.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0]):
 
103
                y0 -= float(inkex.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0]))
104
104
        self.groupmat = [[[scale, 0.0, -x0*scale], [0.0, mirror*scale, -y0*scale]]]
105
105
        doc = self.document.getroot()
106
106
        self.process_group(doc)