summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp-guide.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index 5375bc442..3ffd3eda2 100644
--- 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;