summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46fb350)
raw | patch | inline | side by side (parent: 46fb350)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 17 Jan 2007 22:35:47 +0000 (22:35 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 17 Jan 2007 22:35:47 +0000 (22:35 +0000) |
src/filter-chemistry.cpp | patch | blob | history |
index 100caefbe3db46dc8fd90e8512b64341fb4cb1dd..2c0a3636f5691b774d1e84fc3685c0350d3294e4 100644 (file)
--- a/src/filter-chemistry.cpp
+++ b/src/filter-chemistry.cpp
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