From 8321c5df4e6ab5bf9941379788ccdac04e0b9b0d Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 1 Apr 2008 17:29:12 +0000 Subject: [PATCH] move helper path to the bottom so it doesnt get in the way with editing nodes --- src/nodepath.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 924d57595..250970dec 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -19,6 +19,7 @@ #include "display/curve.h" #include "display/sp-ctrlline.h" #include "display/sodipodi-ctrl.h" +#include "display/sp-canvas-util.h" #include #include "libnr/n-art-bpath.h" #include "libnr/nr-path.h" @@ -268,6 +269,7 @@ Inkscape::NodePath::Path *sp_nodepath_new(SPDesktop *desktop, SPObject *object, np->helper_path = sp_canvas_bpath_new(sp_desktop_controls(desktop), helper_curve); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(np->helper_path), np->helperpath_rgba, np->helperpath_width, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(np->helper_path), 0, SP_WIND_RULE_NONZERO); + sp_canvas_item_move_to_z(np->helper_path, 0); sp_canvas_item_show(np->helper_path); sp_curve_unref(helper_curve); } @@ -4592,6 +4594,7 @@ void sp_nodepath_show_helperpath(Inkscape::NodePath::Path *np, bool show) { np->helper_path = sp_canvas_bpath_new(sp_desktop_controls(np->desktop), helper_curve); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(np->helper_path), np->helperpath_rgba, np->helperpath_width, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(np->helper_path), 0, SP_WIND_RULE_NONZERO); + sp_canvas_item_move_to_z(np->helper_path, 0); sp_canvas_item_show(np->helper_path); } else { sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(np->helper_path), helper_curve); -- 2.30.2