diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-08-17 14:58:39 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-08-17 14:58:39 +0000 |
| commit | 2286e96fb2d97298adf9920902babc522dc80b66 (patch) | |
| tree | 35063233ff3676c4df7def81bf7a7adc4b235eef /src/live_effects/parameter/parameter.cpp | |
| parent | Clone Original -> Fill Between Many (diff) | |
| parent | Update to trunk r13525 (diff) | |
| download | inkscape-2286e96fb2d97298adf9920902babc522dc80b66.tar.gz inkscape-2286e96fb2d97298adf9920902babc522dc80b66.zip | |
Update to experimental r13483
(bzr r13090.1.105)
Diffstat (limited to 'src/live_effects/parameter/parameter.cpp')
| -rw-r--r-- | src/live_effects/parameter/parameter.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp index 7732eee76..7a2fd9769 100644 --- a/src/live_effects/parameter/parameter.cpp +++ b/src/live_effects/parameter/parameter.cpp @@ -36,14 +36,12 @@ Parameter::Parameter( const Glib::ustring& label, const Glib::ustring& tip, { } - void Parameter::param_write_to_repr(const char * svgd) { param_effect->getRepr()->setAttribute(param_key.c_str(), svgd); } - // In gtk2, this wasn't an issue; we could toss around // G_MAXDOUBLE and not worry about size allocations. But // in gtk3, it is an issue: it allocates widget size for the maxmium @@ -51,6 +49,12 @@ Parameter::param_write_to_repr(const char * svgd) // If you need this to be more, please be conservative about it. const double SCALARPARAM_G_MAXDOUBLE = 10000000000; +void Parameter::write_to_SVG(void) +{ + gchar * str = param_getSVGValue(); + param_write_to_repr(str); + g_free(str); +} /*########################################### * REAL PARAM |
