diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-08-17 00:43:57 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-08-17 00:43:57 +0000 |
| commit | fbd80d77d08c63a1e7ad0c3d4701fc1493d0b0bc (patch) | |
| tree | a4094653f085e004bd7b084f267644d5067cfa87 /src/xml/repr-util.cpp | |
| parent | Fixes doubled transparency computation on bitmaps for some reason (diff) | |
| download | inkscape-fbd80d77d08c63a1e7ad0c3d4701fc1493d0b0bc.tar.gz inkscape-fbd80d77d08c63a1e7ad0c3d4701fc1493d0b0bc.zip | |
import images with dpi from file : xscale and yscale were not rounded but floored, which resulted in 0 values for big images, and numerical mayhem ensued ("inf" and "nan").
Fixed bugs:
- https://launchpad.net/bugs/1479193
(bzr r14307)
Diffstat (limited to 'src/xml/repr-util.cpp')
| -rw-r--r-- | src/xml/repr-util.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp index f7a437163..ce93bccab 100644 --- a/src/xml/repr-util.cpp +++ b/src/xml/repr-util.cpp @@ -528,6 +528,7 @@ unsigned int sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, { g_return_val_if_fail(repr != NULL, FALSE); g_return_val_if_fail(key != NULL, FALSE); + g_return_val_if_fail(val==val, FALSE);//tests for nan Inkscape::SVGOStringStream os; os << val; |
