diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-09-13 21:29:39 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-09-13 21:29:39 +0000 |
| commit | 2795b615ec2048df6353654c58c777cdbaaaab96 (patch) | |
| tree | 57a81bc469fdd6ad98f418dbcafb9ec97d63b144 /src/node-context.cpp | |
| parent | fix UI node counting (diff) | |
| download | inkscape-2795b615ec2048df6353654c58c777cdbaaaab96.tar.gz inkscape-2795b615ec2048df6353654c58c777cdbaaaab96.zip | |
only display flash helperpath warning for shapes other than paths
(bzr r6805)
Diffstat (limited to 'src/node-context.cpp')
| -rw-r--r-- | src/node-context.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/node-context.cpp b/src/node-context.cpp index 9f026c3f2..17243b1b2 100644 --- a/src/node-context.cpp +++ b/src/node-context.cpp @@ -177,7 +177,6 @@ sp_node_context_setup(SPEventContext *ec) static void sp_node_context_flash_path(SPEventContext *event_context, SPItem *item, guint timeout) { - g_print ("-----> sp_node_context_flash_path(): TODO: generate the helper path!!\n"); SPNodeContext *nc = SP_NODE_CONTEXT(event_context); nc->remove_flash_counter = 3; // for some reason root_handler is called twice after each item_handler... @@ -190,8 +189,14 @@ sp_node_context_flash_path(SPEventContext *event_context, SPItem *item, guint ti nc->flash_tempitem = NULL; } + SPCanvasItem *canvasitem = NULL; if (SP_IS_PATH(item)) { - SPCanvasItem *canvasitem = sp_nodepath_helperpath_from_path(desktop, SP_PATH(item)); + canvasitem = sp_nodepath_helperpath_from_path(desktop, SP_PATH(item)); + } else { + g_print ("-----> sp_node_context_flash_path(): TODO: generate the helper path!!\n"); + } + + if (canvasitem) { nc->flash_tempitem = desktop->add_temporary_canvasitem (canvasitem, timeout); } } |
