summaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/live_effects/parameter/path.cpp4
-rw-r--r--src/ui/tool/node-tool.cpp8
2 files changed, 5 insertions, 7 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp
index 1ea9ac506..94540a255 100644
--- a/src/live_effects/parameter/path.cpp
+++ b/src/live_effects/parameter/path.cpp
@@ -195,7 +195,7 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips)
}
void
-PathParam::param_editOncanvas(SPItem * /*item*/, SPDesktop * dt)
+PathParam::param_editOncanvas(SPItem *item, SPDesktop * dt)
{
using namespace Inkscape::UI;
@@ -209,7 +209,7 @@ PathParam::param_editOncanvas(SPItem * /*item*/, SPDesktop * dt)
ShapeRecord r;
r.role = SHAPE_ROLE_LPE_PARAM;
- r.edit_transform = Geom::identity(); // TODO this is almost certainly wrong
+ r.edit_transform = sp_item_i2d_affine(item); // TODO is it right?
if (!href) {
r.item = reinterpret_cast<SPItem*>(param_effect->getLPEObj());
r.lpe_key = param_key;
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;