summaryrefslogtreecommitdiffstats
path: root/src/node-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-16 15:46:06 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-16 15:46:06 +0000
commit880114dc05648206f6f0ee8fe62cd93a272f934d (patch)
treeebca6a45874890405e07b0f62e0a555e3ec4343e /src/node-context.cpp
parentSecond step: try to make helper curves respond faster (don't recreate/delete ... (diff)
downloadinkscape-880114dc05648206f6f0ee8fe62cd93a272f934d.tar.gz
inkscape-880114dc05648206f6f0ee8fe62cd93a272f934d.zip
Ditch PERMANENT_FLASH because it is handled by providesOwnFlashPath(); avoid flashing when LPE already provides a helperpath
(bzr r5956)
Diffstat (limited to 'src/node-context.cpp')
-rw-r--r--src/node-context.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/node-context.cpp b/src/node-context.cpp
index b85e08b68..9a4bff88e 100644
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
@@ -236,15 +236,11 @@ sp_node_context_item_handler(SPEventContext *event_context, SPItem *item, GdkEve
guint timeout = prefs_get_int_attribute("tools.nodes", "pathflash_timeout", 500);
if (SP_IS_LPE_ITEM(item)) {
Inkscape::LivePathEffect::Effect *lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
- if (lpe) {
- if (lpe->pathFlashType() == Inkscape::LivePathEffect::SUPPRESS_FLASH) {
- // suppressed and permanent flashes for LPE items are handled in
- // sp_node_context_selection_changed()
- return ret;
- }
- if (lpe->pathFlashType() == Inkscape::LivePathEffect::PERMANENT_FLASH) {
- timeout = 0;
- }
+ if (lpe && (lpe->providesOwnFlashPaths() ||
+ lpe->pathFlashType() == Inkscape::LivePathEffect::SUPPRESS_FLASH)) {
+ // path should be suppressed or permanent; this is handled in
+ // sp_node_context_selection_changed()
+ return ret;
}
}
sp_node_context_flash_path(event_context, item, timeout);