summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node-tool.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-04-01 23:02:33 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-04-01 23:02:33 +0000
commit434ac15158aec9c65c8d61c936788d8358ed3157 (patch)
tree3d07525364aef61db7f39db69139b0592f4c92f9 /src/ui/tool/node-tool.cpp
parentadd curve before LPE to SPShape. this is useful for helperpath display. It wa... (diff)
downloadinkscape-434ac15158aec9c65c8d61c936788d8358ed3157.tar.gz
inkscape-434ac15158aec9c65c8d61c936788d8358ed3157.zip
use shape's curve before LPE as flash path in node tool. so now, you should see a flashing path for all shapes now
(bzr r10143)
Diffstat (limited to 'src/ui/tool/node-tool.cpp')
-rw-r--r--src/ui/tool/node-tool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tool/node-tool.cpp b/src/ui/tool/node-tool.cpp
index e75f31370..f83f8c473 100644
--- a/src/ui/tool/node-tool.cpp
+++ b/src/ui/tool/node-tool.cpp
@@ -480,10 +480,11 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
nt->flash_tempitem = NULL;
nt->flashed_item = NULL;
}
- if (!SP_IS_PATH(over_item)) break; // for now, handle only paths
+ if (!SP_IS_SHAPE(over_item)) break; // for now, handle only shapes
nt->flashed_item = over_item;
- SPCurve *c = sp_path_get_curve_for_edit(SP_PATH(over_item));
+ SPCurve *c = SP_SHAPE(over_item)->getCurveBeforeLPE();
+ if (!c) break; // break out when curve doesn't exist
c->transform(over_item->i2d_affine());
SPCanvasItem *flash = sp_canvas_bpath_new(sp_desktop_tempgroup(desktop), c);
sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(flash),