Skip to content

Commit

Permalink
Merge pull request Neon22#2 from Moini/patch-1
Browse files Browse the repository at this point in the history
Fix error
  • Loading branch information
Neon22 committed Apr 19, 2016
2 parents 406cfba + 3d19313 commit c49d5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def calc_unit_factor(self):
everything in inkscape is expected to be in 90dpi pixel units
"""
# namedView = self.document.getroot().find(inkex.addNS('namedview', 'sodipodi'))
# doc_units = self.getUnittouu(1.0, namedView.get(inkex.addNS('document-units', 'inkscape')))
dialog_units = self.getUnittouu(1.0, self.options.units)
# doc_units = self.getUnittouu(str(1.0) + namedView.get(inkex.addNS('document-units', 'inkscape')))
dialog_units = self.getUnittouu(str(1.0) + self.options.units)
unit_factor = 1.0 / dialog_units
return unit_factor

Expand Down

0 comments on commit c49d5cd

Please sign in to comment.