diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-02-19 10:30:57 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-02-19 10:30:57 +0000 |
| commit | 46cfa40b072cb16c93532e2c36059ee3ff400830 (patch) | |
| tree | 1f798874c624d965a697756f177d32c78a8be8eb /src | |
| parent | Define GLIBMM_2_28 instead of NEW_GLIBMM for consistency with other GLIBMM ve... (diff) | |
| download | inkscape-46cfa40b072cb16c93532e2c36059ee3ff400830.tar.gz inkscape-46cfa40b072cb16c93532e2c36059ee3ff400830.zip | |
fix crash on non-finite stroke widths
Fixed bugs:
- https://launchpad.net/bugs/935157
(bzr r10995)
Diffstat (limited to 'src')
| -rw-r--r-- | src/style.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp index dff13f42f..4244798bf 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -52,6 +52,8 @@ #include <sigc++/functors/ptr_fun.h> #include <sigc++/adaptors/bind.h> +#include <2geom/math-utils.h> + using Inkscape::CSSOStringStream; using std::vector; @@ -3276,6 +3278,9 @@ sp_style_read_ilength(SPILength *val, gchar const *str) gchar *e; /** \todo fixme: Move this to standard place (Lauris) */ value = g_ascii_strtod(str, &e); + if ( !IS_FINITE(value) ) { // fix for bug lp:935157 + return; + } if ((gchar const *) e != str) { /** \todo * Allow the number of px per inch to vary (document preferences, |
