summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-07-24 16:49:11 +0000
committerjabiertxof <info@marker.es>2016-07-24 16:49:11 +0000
commita5d6c9a27683820be3d84eea73c2d6f161ce0e8e (patch)
treeb9ba6c20747c4d6d7b4479d229b9daf8eea5c5bd /src/knotholder.cpp
parentThis for you CR ยท Measure line, show the distance on rect lines CAD like wit... (diff)
downloadinkscape-a5d6c9a27683820be3d84eea73c2d6f161ce0e8e.tar.gz
inkscape-a5d6c9a27683820be3d84eea73c2d6f161ce0e8e.zip
Add Text tag and update widgets code
(bzr r15017.1.2)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index a2d1cf017..86ae8f0b8 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -17,6 +17,7 @@
#include "document.h"
#include "document-undo.h"
+#include "selection.h"
#include "sp-shape.h"
#include "knot.h"
#include "knotholder.h"
@@ -202,7 +203,7 @@ KnotHolder::knot_moved_handler(SPKnot *knot, Geom::Point const &p, guint state)
}
void
-KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/, guint)
+KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/, guint /*state*/)
{
this->dragging = false;
@@ -226,8 +227,12 @@ KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/, guint)
// write the ones that were changed?
Inkscape::LivePathEffect::Effect *lpe = lpeItem->getCurrentLPE();
if (lpe) {
+ lpe->upd_params = true;
LivePathEffectObject *lpeobj = lpe->getLPEObj();
lpeobj->updateRepr();
+ //Force redraw for update widgets
+ Inkscape::Selection *selection = desktop->getSelection();
+ selection ->emitModified();
}
}