summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-08 00:30:57 +0000
committerjabiertxof <info@marker.es>2016-10-08 00:30:57 +0000
commitbf899f7b2615bc40094815c81f7a127a42822f8e (patch)
tree8b30db7baf42c2051c1de654779dcb3082cbe39a /src/verbs.cpp
parentDoc rotate start (diff)
parentFix bug:1622321 on powerstroke (diff)
downloadinkscape-bf899f7b2615bc40094815c81f7a127a42822f8e.tar.gz
inkscape-bf899f7b2615bc40094815c81f7a127a42822f8e.zip
Update to trunk
(bzr r15142.1.2)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 5130f1701..72708a7c0 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -817,7 +817,7 @@ Verb *Verb::get_search(unsigned int code)
*
* @param id Which id to search for.
*/
-Verb *Verb::getbyid(gchar const *id)
+Verb *Verb::getbyid(gchar const *id, bool verbose)
{
Verb *verb = NULL;
VerbIDTable::iterator verb_found = _verb_ids.find(id);
@@ -833,8 +833,10 @@ Verb *Verb::getbyid(gchar const *id)
&& strcmp(id, "SelectionTrace") != 0
&& strcmp(id, "PaintBucketPrefs") != 0
#endif
- )
- printf("Unable to find: %s\n", id);
+ ) {
+ if (verbose)
+ printf("Unable to find: %s\n", id);
+ }
return verb;
}