From 5bfd9a2fc8244c78125dc417975b6feff6b884f1 Mon Sep 17 00:00:00 2001 From: "dmitry.zhulanov@gmail.com" <> Date: Thu, 18 May 2017 03:57:46 +0700 Subject: fix naming (bzr r15697.1.1) --- src/main-cmdlinexact.cpp | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) (limited to 'src/main-cmdlinexact.cpp') diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp index 99f0c699b..fd9520104 100644 --- a/src/main-cmdlinexact.cpp +++ b/src/main-cmdlinexact.cpp @@ -6,38 +6,9 @@ * * Released under GNU GPL v2, read the file 'COPYING' for more information * - * Format of xverbs.yaml - * using: $ inkscape -B xverbs.yaml - * - * verbose: yes # only "verbose: yes" enable logging - * run: - * # open document to process - * - xverb-id: XFileOpen, gfx_sources/loading_screen/sandclock_atlas.svg - * - xverb-id: XUndoLabel, fresh_document # set label for UndoToLabel xverb works - * # note: if something wrong with undo labels use verb EditUndo instead of XUndoLabel and UndoToLabel at all - * - * # select element to handle - * - xverb-id: XSelectElement, top_sand - * - * # verbs - * - verb-id: EditInvertInAllLayers - * - verb-id: EditDelete - * - verb-id: FitCanvasToDrawing - * - * # save element to separated svg document - * - xverb-id: XFileSaveAs, output/thegame/linux/data/gfx/loading_screen/top_sand.svg - * - * # also save png preview - * - xverb-id: XFileExportPNG, output/thegame/linux/data/gfx_preview/loading_screen/top_sand.png - * - * # return to the fresh_state of document - * - xverb-id: UndoToLabel, fresh_document - * - * # do any other handling - * - * # inkscape have a lot of useful verbs - * - verb-id: FileQuit + * more details: http://wiki.inkscape.org/wiki/index.php/Using_xverbs */ + #ifdef WITH_YAML #include #include @@ -504,9 +475,9 @@ CmdLineXAction::createActionsFromYAML( gchar const *yaml_filename ) continue; } undo_labels_map[verb.args[1]] = undo_counter; - } else if (verb_word == "UndoToLabel") { + } else if (verb_word == "XUndoToLabel") { if (verb.args.size() < 2) { - printf("bad arguments for UndoToLabel\n"); + printf("bad arguments for XUndoToLabel\n"); continue; } -- cgit v1.2.3 From d865c3a94b4761f476877ad11239c46830d68cec Mon Sep 17 00:00:00 2001 From: "dmitry.zhulanov@gmail.com" <> Date: Thu, 18 May 2017 04:00:31 +0700 Subject: fix crash (bzr r15697.1.2) --- src/main-cmdlinexact.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main-cmdlinexact.cpp') diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp index fd9520104..fc9e84dc4 100644 --- a/src/main-cmdlinexact.cpp +++ b/src/main-cmdlinexact.cpp @@ -108,6 +108,7 @@ void xFileOpen( const Glib::ustring &uri ) SPDocument *old_document = desktop->getDocument(); desktop->setWaitingCursor(); Inkscape::DocumentUndo::clearRedo(old_document); + Inkscape::DocumentUndo::clearUndo(old_document); } SPDocument *doc = NULL; -- cgit v1.2.3