diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-07-06 14:13:13 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-07-06 14:13:13 +0000 |
| commit | f0c7df3517326ecf248ee6e768e1c835d072561c (patch) | |
| tree | dee0d6c776321493930da9338aaf0a58d12ce934 /src/live_effects/parameter/parameter.cpp | |
| parent | Fix FTBFS gtk3 & make check (diff) | |
| download | inkscape-f0c7df3517326ecf248ee6e768e1c835d072561c.tar.gz inkscape-f0c7df3517326ecf248ee6e768e1c835d072561c.zip | |
Fix an oddity with path effects dialog, gtk3 only
(bzr r13341.1.79)
Diffstat (limited to 'src/live_effects/parameter/parameter.cpp')
| -rw-r--r-- | src/live_effects/parameter/parameter.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp index a5de2169e..401d89884 100644 --- a/src/live_effects/parameter/parameter.cpp +++ b/src/live_effects/parameter/parameter.cpp @@ -43,6 +43,14 @@ 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 +// value you pass to it, leading to some insane lengths. +const double SCALARPARAM_G_MAXDOUBLE = 10000000000; + + /*########################################### * REAL PARAM */ @@ -51,8 +59,8 @@ ScalarParam::ScalarParam( const Glib::ustring& label, const Glib::ustring& tip, Effect* effect, gdouble default_value) : Parameter(label, tip, key, wr, effect), value(default_value), - min(-G_MAXDOUBLE), - max(G_MAXDOUBLE), + min(-SCALARPARAM_G_MAXDOUBLE), + max(SCALARPARAM_G_MAXDOUBLE), integer(false), defvalue(default_value), digits(2), |
