Code

correcting a parameter name in foldable-box extension
authoraurium <aurium@users.sourceforge.net>
Sun, 22 Feb 2009 21:20:33 +0000 (21:20 +0000)
committeraurium <aurium@users.sourceforge.net>
Sun, 22 Feb 2009 21:20:33 +0000 (21:20 +0000)
share/extensions/foldable-box.inx
share/extensions/foldable-box.py

index 3a5737cbf66471266871a4eb1d5bd58a270152f4..35694731705ec2b326ff68bb975bd22762f59d80 100644 (file)
@@ -7,7 +7,7 @@
   <param name="width"  type="float" min="0.1" max="1000.0" _gui-text="Width">10.0</param>
   <param name="height" type="float" min="0.1" max="1000.0" _gui-text="Height">15.0</param>
   <param name="depth"  type="float" min="0.1" max="1000.0" _gui-text="Depth">3.0</param>
-  <param name="paper-spessure" type="float" min="0.0" max="100.0" _gui-text="Paper Spessure">0.01</param>
+  <param name="paper-thickness" type="float" min="0.0" max="100.0" _gui-text="Paper Thickness">0.01</param>
   <param name="tab-proportion" type="float" min="0.1" max="1.0" _gui-text="Tab Proportion">0.6</param>
   <param name="unit"   type="enum" _gui-text="Unit">\r
     <item>px</item>\r
index 9f424030812866ec10d59e0e0efa44bb3cefd788..242ddcfb81f2de7e1ac554e76b7be541d78b2c4a 100755 (executable)
@@ -43,10 +43,10 @@ class FoldableBox(inkex.Effect):
                         action="store", type="string",
                         dest="unit", default="cm",
                         help="The unit of the box dimensions")
-        self.OptionParser.add_option("-p", "--paper-spessure",
+        self.OptionParser.add_option("-p", "--paper-thickness",
                         action="store", type="float",
-                        dest="spessure", default=0.01,
-                        help="Paper Spessure - sometimes that is important")
+                        dest="thickness", default=0.01,
+                        help="Paper Thickness - sometimes that is important")
         self.OptionParser.add_option("-t", "--tab-proportion",
                         action="store", type="float",
                         dest="tabProportion", default=0.6,