summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-07-09 16:46:11 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-07-09 16:46:11 +0000
commite50be9b78570331bc520adc4bcbfa9289653178f (patch)
treeb9768bcb8ba6649a58fb459199975ec228ad250a /src/sp-guide.cpp
parentRemove an unnecessary line that always raises an exception - there is no 'what'. (diff)
downloadinkscape-e50be9b78570331bc520adc4bcbfa9289653178f.tar.gz
inkscape-e50be9b78570331bc520adc4bcbfa9289653178f.zip
fix 243913
(bzr r6248)
Diffstat (limited to 'src/sp-guide.cpp')
-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;