From e7ab4483fc5f5f3a8555d2e0bbdf2230aa187237 Mon Sep 17 00:00:00 2001 From: ishmal Date: Fri, 11 May 2007 23:33:37 +0000 Subject: [PATCH] Applied patch 1707577 to add "ft" and "yd" --- share/extensions/measure.inx | 2 ++ share/extensions/measure.py | 4 ++++ 2 files changed, 6 insertions(+) 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 -- 2.30.2