summaryrefslogtreecommitdiffstats
path: root/src/main-cmdlinexact.cpp
diff options
context:
space:
mode:
authorDmitry Zhulanov <dmitry.zhulanov@gmail.com>2016-09-29 16:08:29 +0000
committerDmitry Zhulanov <dmitry.zhulanov@gmail.com>2016-09-29 16:08:29 +0000
commit06f90c27b6e17397b03f20fe92fd0fb31d55332c (patch)
tree3e11a0b9a86c3b12423f7d87311f0ac1d1e5d462 /src/main-cmdlinexact.cpp
parentallow optional args for xverbs (diff)
downloadinkscape-06f90c27b6e17397b03f20fe92fd0fb31d55332c.tar.gz
inkscape-06f90c27b6e17397b03f20fe92fd0fb31d55332c.zip
allow to use verbs as xverbs
(bzr r15136.1.8)
Diffstat (limited to 'src/main-cmdlinexact.cpp')
-rw-r--r--src/main-cmdlinexact.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp
index ddf8a73eb..a3c9436bd 100644
--- a/src/main-cmdlinexact.cpp
+++ b/src/main-cmdlinexact.cpp
@@ -517,8 +517,13 @@ CmdLineXAction::createActionsFromYAML( gchar const *yaml_filename ) {
++undo_counter;
new CmdLineAction(true, verb.args[0].c_str());
}
+ else if( Verb::getbyid(verb.args[0].c_str()) != NULL )
+ {
+ ++undo_counter;
+ new CmdLineAction(true, verb.args[0].c_str());
+ }
else {
- printf("Unhadled verb %s\n", verb.args[0].c_str());
+ printf("Unhadled xverb %s\n", verb.args[0].c_str());
fflush(stdout);
}
}