[lasem] [SvgTraits] Fix auto value parsing for angles.



commit 3878e922128c5926d138a9d414db0730e1475e2e
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date:   Tue Aug 18 10:10:28 2009 +0200

    [SvgTraits] Fix auto value parsing for angles.

 src/lsmsvgtraits.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmsvgtraits.c b/src/lsmsvgtraits.c
index 313f7d0..e8da5bd 100644
--- a/src/lsmsvgtraits.c
+++ b/src/lsmsvgtraits.c
@@ -691,7 +691,7 @@ lsm_svg_angle_trait_from_string (LsmTrait *abstract_trait, char *string)
 {
 	LsmSvgAngle *trait = (LsmSvgAngle *) abstract_trait;
 
-	if (g_strcmp0 (string, "auto")) {
+	if (g_strcmp0 (string, "auto") == 0) {
 		trait->type = LSM_SVG_ANGLE_TYPE_AUTO;
 		trait->angle = 0.0;
 	} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]