diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-17 22:35:47 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-17 22:35:47 +0000 |
| commit | 49b9d8030be0db67432770ba570206699362a64b (patch) | |
| tree | 2507a15d166af68157d27b658ffe22b70eccc674 /src | |
| parent | patch 1635163: directional repaint for better interactivity (diff) | |
| download | inkscape-49b9d8030be0db67432770ba570206699362a64b.tar.gz inkscape-49b9d8030be0db67432770ba570206699362a64b.zip | |
safety check
(bzr r2231)
Diffstat (limited to 'src')
| -rw-r--r-- | src/filter-chemistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter-chemistry.cpp b/src/filter-chemistry.cpp index 100caefbe..2c0a3636f 100644 --- a/src/filter-chemistry.cpp +++ b/src/filter-chemistry.cpp @@ -38,8 +38,8 @@ new_filter_gaussian_blur (SPDocument *document, gdouble radius, double expansion repr = sp_repr_new("svg:filter"); repr->setAttribute("inkscape:collect", "always"); - double rx = radius * (expansion / expansionY); - double ry = radius * (expansion / expansionX); + double rx = radius * (expansionY != 0? (expansion / expansionY) : 1); + double ry = radius * (expansionX != 0? (expansion / expansionX) : 1); if (width != 0 && height != 0 && (2 * rx > width * 0.1 || 2 * ry > height * 0.1)) { // If not within the default 10% margin (see |
