Code

Restore 0.46 placement of node alignment buttons
[inkscape.git] / share / extensions / addnodes.py
index af59a0d67ca559f86c420f847494c94b262460e9..3a8bebe668fb5e4cebb33652e91133b057b2ac49 100644 (file)
@@ -70,7 +70,7 @@ class SplitIt(inkex.Effect):
                         dest="segments", default=2,
                         help="Number of segments to divide the path into")
         self.OptionParser.add_option("--max",
-                        action="store", type="int", 
+                        action="store", type="float", 
                         dest="max", default=2,
                         help="Number of segments to divide the path into")
         self.OptionParser.add_option("--method",
@@ -108,5 +108,9 @@ class SplitIt(inkex.Effect):
                     
                 node.set('d',cubicsuperpath.formatPath(new))
 
-e = SplitIt()
-e.affect()
+if __name__ == '__main__':
+    e = SplitIt()
+    e.affect()
+
+
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99