X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=share%2Fextensions%2Fsimplepath.rb;h=3d9b7b372142f823d406cb25db5a487d9475f16c;hb=d015e485f55fdead03217c73365e66c5aaf0af2b;hp=466a75d10faf6df068c4a0a103acf9c5fe77e002;hpb=e8febbe183f42d9e406bdf0c92b8cd8ef6352542;p=inkscape.git diff --git a/share/extensions/simplepath.rb b/share/extensions/simplepath.rb index 466a75d10..3d9b7b372 100755 --- a/share/extensions/simplepath.rb +++ b/share/extensions/simplepath.rb @@ -78,9 +78,9 @@ def parsePath(d) lastCommand = nil lexPath(d) do |token, isCommand| - if command - raise 'Invalid number of parameters' if isCommand - else + raise 'Invalid number of parameters' if command and isCommand + + unless command if isCommand raise 'Invalid path, must begin with moveto.' \ unless lastCommand or token.upcase == 'M'