From: buliabyak Date: Wed, 9 Jul 2008 16:46:11 +0000 (+0000) Subject: fix 243913 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c75457ea741df0efc296cd9d8d8f313423cb0e36;p=inkscape.git fix 243913 --- 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;