From 8dcceaad4a012fba553f525718c6eab832378894 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 20 Feb 2008 08:58:35 +0000 Subject: fix Bug #191909 crash on lpe stitch sub-paths, also fix crash for bend path lpe (bzr r4789) --- src/live_effects/parameter/path.cpp | 6 ++++++ src/live_effects/parameter/path.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/live_effects/parameter') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 7d7679496..09b0ff5d4 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -58,6 +58,12 @@ PathParam::param_set_default() param_readSVGValue(defvalue); } +void +PathParam::param_set_and_write_default() +{ + param_write_to_repr(defvalue); +} + bool PathParam::param_readSVGValue(const gchar * strvalue) { diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index f02974bc7..8ee7950a3 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -39,7 +39,7 @@ public: gchar * param_writeSVGValue() const; void param_set_default(); - + void param_set_and_write_default(); void param_set_and_write_new_value (Geom::Piecewise > newpath); void param_editOncanvas(SPItem * item, SPDesktop * dt); -- cgit v1.2.3