summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshare/extensions/simplepath.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/extensions/simplepath.rb b/share/extensions/simplepath.rb
index 0b6e122bf..7c634fe24 100755
--- a/share/extensions/simplepath.rb
+++ b/share/extensions/simplepath.rb
@@ -96,6 +96,9 @@ def parsePath(d)
outputCommand = command.upcase
else
raise 'Invalid number of parameters' if isCommand
+ end
+
+ unless isCommand
param = token.send PATHDEFS[outputCommand].casts[params.length]
if command =~ /[a-z]/
case PATHDEFS[outputCommand].coord_types[params.length]