[lasem] [SvgTraits] Fix auto value parsing for angles.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [lasem] [SvgTraits] Fix auto value parsing for angles.
- Date: Tue, 18 Aug 2009 08:40:14 +0000 (UTC)
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]