From: ishmal Date: Fri, 11 May 2007 23:33:37 +0000 (+0000) Subject: Applied patch 1707577 to add "ft" and "yd" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7ab4483fc5f5f3a8555d2e0bbdf2230aa187237;p=inkscape.git Applied patch 1707577 to add "ft" and "yd" --- diff --git a/share/extensions/measure.inx b/share/extensions/measure.inx index b04456a8b..350751463 100644 --- a/share/extensions/measure.inx +++ b/share/extensions/measure.inx @@ -15,6 +15,8 @@ px pt in + ft + yd mm cm m diff --git a/share/extensions/measure.py b/share/extensions/measure.py index d19dde931..4a4435ceb 100644 --- a/share/extensions/measure.py +++ b/share/extensions/measure.py @@ -140,6 +140,10 @@ class Length(inkex.Effect): factor=0.0000002822219 # px->km elif self.options.unit=="in": factor=0.2822219/25.4 # px->in + elif self.options.unit=="ft": + factor=0.2822219/(25.4*12) # px->ft + elif self.options.unit=="yd": + factor=0.2822219/(25.4*36) # px->yd else : ''' Default unit is px''' factor=1