summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ffd90a7)
raw | patch | inline | side by side (parent: ffd90a7)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 1 Apr 2008 17:29:12 +0000 (17:29 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 1 Apr 2008 17:29:12 +0000 (17:29 +0000) |
src/nodepath.cpp | patch | blob | history |
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 924d57595be1993cd3452c8e60cf5d6f5fe82d7e..250970dec4025b83319d048ac92b0ff535dba520 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
#include "display/curve.h"
#include "display/sp-ctrlline.h"
#include "display/sodipodi-ctrl.h"
+#include "display/sp-canvas-util.h"
#include <glibmm/i18n.h>
#include "libnr/n-art-bpath.h"
#include "libnr/nr-path.h"
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);
}
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);