diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2009-03-05 06:00:11 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2009-03-05 06:00:11 +0000 |
| commit | 4756ffaebb8e495ae1b7513cb03837028f2c0a41 (patch) | |
| tree | c6f4c4fce9d86b0fff9256f1f605aa3e06c6c12c /src/node-context.cpp | |
| parent | Add layers dialog to top toolbar. Applies patch from bug #336519. (diff) | |
| download | inkscape-4756ffaebb8e495ae1b7513cb03837028f2c0a41.tar.gz inkscape-4756ffaebb8e495ae1b7513cb03837028f2c0a41.zip | |
Add option to only flash paths for node tool when none is selected. Applies patch from bug #336490.
(bzr r7420)
Diffstat (limited to '')
| -rw-r--r-- | src/node-context.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/node-context.cpp b/src/node-context.cpp index a8f6fcf97..33b4a53e0 100644 --- a/src/node-context.cpp +++ b/src/node-context.cpp @@ -236,7 +236,14 @@ sp_node_context_item_handler(SPEventContext *event_context, SPItem *item, GdkEve Inkscape::Preferences *prefs = Inkscape::Preferences::get(); if (prefs->getBool("/tools/nodes/pathflash_enabled")) { - guint timeout = prefs->getInt("/tools/nodes/pathflash_timeout", 500); + if (prefs->getBool("/tools/nodes/pathflash_unselected")) { + SPDesktop *desktop = event_context->desktop; + ShapeEditor* se = event_context->shape_editor; + Inkscape::Selection *selection = sp_desktop_selection (desktop); + if (se->has_nodepath() && selection->singleItem()) { + return ret; + } + } if (SP_IS_LPE_ITEM(item)) { Inkscape::LivePathEffect::Effect *lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item)); if (lpe && (lpe->providesOwnFlashPaths() || @@ -246,6 +253,7 @@ sp_node_context_item_handler(SPEventContext *event_context, SPItem *item, GdkEve return ret; } } + guint timeout = prefs->getInt("/tools/nodes/pathflash_timeout", 500); sp_node_context_flash_path(event_context, item, timeout); } |
