summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-05-23 18:25:20 +0000
committerjabiertxof <info@marker.es>2016-05-23 18:25:20 +0000
commitff9ec25d3afc0453ead52d3da10b754637c8207f (patch)
tree04f004dfa8f21dd8421a8b7268db9019e2638631 /src
parentupdate to trunk (diff)
downloadinkscape-ff9ec25d3afc0453ead52d3da10b754637c8207f.tar.gz
inkscape-ff9ec25d3afc0453ead52d3da10b754637c8207f.zip
Fixing pointwise
(bzr r13645.1.141)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-fillet-chamfer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp
index fc31aa447..a291776b7 100644
--- a/src/live_effects/lpe-fillet-chamfer.cpp
+++ b/src/live_effects/lpe-fillet-chamfer.cpp
@@ -16,9 +16,9 @@
#include <2geom/elliptical-arc.h>
#include "knotholder.h"
#include <boost/optional.hpp>
+#include "ui/tools-switch.h"
// TODO due to internal breakage in glibmm headers, this must be last:
#include <glibmm/i18n.h>
-
namespace Inkscape {
namespace LivePathEffect {
@@ -241,6 +241,7 @@ void LPEFilletChamfer::refreshKnots()
{
//Find another way to update knots satellites_param.knoth->update_knots(); do the thing
//but not updat the knot index on node delete
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
if (tools_isactive(desktop, TOOLS_NODES)) {
tools_switch(desktop, TOOLS_SELECT);
tools_switch(desktop, TOOLS_NODES);
@@ -420,8 +421,8 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem)
pointwise.setPathVector(pathv);
pointwise.setSatellites(satellites);
}
- satellites_param.setPointwise(pointwise);
refreshKnots();
+ satellites_param.setPointwise(pointwise);
} else {
g_warning("LPE Fillet can only be applied to shapes (not groups).");
}