From c75457ea741df0efc296cd9d8d8f313423cb0e36 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 9 Jul 2008 16:46:11 +0000 Subject: [PATCH] fix 243913 --- src/sp-guide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2