summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node-tool.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-01-22 10:54:17 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-01-22 10:54:17 +0000
commit0283c65f9605dc7690e8b1f302a9754426a8b6c2 (patch)
treef1b428708bc6a3f2b85d384ebaa4ee37d174d8af /src/ui/tool/node-tool.cpp
parentdisable softproofing if no get display id ONLY if source profile is to be tak... (diff)
downloadinkscape-0283c65f9605dc7690e8b1f302a9754426a8b6c2.tar.gz
inkscape-0283c65f9605dc7690e8b1f302a9754426a8b6c2.zip
Fix some of the LPE issues.
(bzr r9013)
Diffstat (limited to 'src/ui/tool/node-tool.cpp')
-rw-r--r--src/ui/tool/node-tool.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/tool/node-tool.cpp b/src/ui/tool/node-tool.cpp
index 092ce7d87..08d893855 100644
--- a/src/ui/tool/node-tool.cpp
+++ b/src/ui/tool/node-tool.cpp
@@ -377,10 +377,6 @@ void gather_items(InkNodeTool *nt, SPItem *base, SPObject *obj, Inkscape::UI::Sh
}
}
-struct IsPath {
- bool operator()(SPItem *i) const { return SP_IS_PATH(i); }
-};
-
void ink_node_tool_selection_changed(InkNodeTool *nt, Inkscape::Selection *sel)
{
using namespace Inkscape::UI;
@@ -401,7 +397,9 @@ void ink_node_tool_selection_changed(InkNodeTool *nt, Inkscape::Selection *sel)
bool something_set = false;
for (std::set<ShapeRecord>::iterator i = shapes.begin(); i != shapes.end(); ++i) {
ShapeRecord const &r = *i;
- if (SP_IS_SHAPE(r.item) && !SP_IS_PATH(r.item)) {
+ if (SP_IS_SHAPE(r.item) ||
+ (SP_IS_PATH(r.item) && r.item->repr->attribute("inkscape:original-d") != NULL))
+ {
nt->shape_editor->set_item(r.item, SH_KNOTHOLDER);
something_set = true;
break;