diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-05-19 15:52:07 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-05-19 15:52:07 +0000 |
| commit | 09089a141e8d8f5073bc4f767c02efc0fec711b1 (patch) | |
| tree | 84b3185967f39d8bc3c010e0ecf05f6c42ee4ca0 /src/shape-editor.cpp | |
| parent | fixed broken intltool-update command :) (diff) | |
| download | inkscape-09089a141e8d8f5073bc4f767c02efc0fec711b1.tar.gz inkscape-09089a141e8d8f5073bc4f767c02efc0fec711b1.zip | |
Provide knotholder for LPEPerpBisector; TODO: this replaces the usual nodepath in node context but in the long run it is desired to use both along with each other
(bzr r5701)
Diffstat (limited to 'src/shape-editor.cpp')
| -rw-r--r-- | src/shape-editor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index d73e99e7c..f0bec7ba9 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -190,7 +190,14 @@ void ShapeEditor::set_item(SPItem *item) { this->grab_node = -1; if (item) { - this->nodepath = sp_nodepath_new(desktop, item, (prefs_get_int_attribute("tools.nodes", "show_handles", 1) != 0)); + SPLPEItem *lpeitem = SP_LPE_ITEM(item); + if (!sp_lpe_item_has_path_effect(lpeitem) || + !sp_lpe_item_get_livepatheffect(lpeitem)->providesKnotholder()) { + // only create nodepath if the item either doesn't have an LPE + // or the LPE doesn't provide a knotholder itself + this->nodepath = + sp_nodepath_new(desktop, item, (prefs_get_int_attribute("tools.nodes", "show_handles", 1) != 0)); + } if (this->nodepath) { this->nodepath->shape_editor = this; } |
