summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ce2d45)
raw | patch | inline | side by side (parent: 3ce2d45)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 9 Jul 2008 16:46:11 +0000 (16:46 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 9 Jul 2008 16:46:11 +0000 (16:46 +0000) |
src/sp-guide.cpp | patch | blob | history |
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index 5375bc442d7301d12d06d8e3d7076a42d1eae6ad..3ffd3eda2d88ff63d9bea1e95057041b62764818 100644 (file)
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -194,7 +194,7 @@ static void sp_guide_set(SPObject *object, unsigned int key, const gchar *value)
unsigned int success = sp_svg_number_read_d(strarray[0], &newx);
success += sp_svg_number_read_d(strarray[1], &newy);
g_strfreev (strarray);
- if (success == 2) {
+ if (success == 2 && (fabs(newx) > 1e-6 || fabs(newy) > 1e-6)) {
Geom::Point direction(newx, newy);
direction.normalize();
guide->normal_to_line = direction;