Code

bug #166885 (preserveAspectRatio="none" misinterpreted)
authorspeleo3 <speleo3@users.sourceforge.net>
Thu, 11 Dec 2008 23:01:43 +0000 (23:01 +0000)
committerspeleo3 <speleo3@users.sourceforge.net>
Thu, 11 Dec 2008 23:01:43 +0000 (23:01 +0000)
src/marker.cpp
src/sp-image.cpp
src/sp-root.cpp
src/sp-symbol.cpp

index 37cb8223cfdebca8f6cb96b2baf0731bd846dba8..5b3267257ede88eee9aa985216527361107b3889 100644 (file)
@@ -323,7 +323,7 @@ sp_marker_set (SPObject *object, unsigned int key, const gchar *value)
                        }
                        clip = SP_ASPECT_MEET;
                        while (*e && *e == 32) e += 1;
-                       if (e) {
+                       if (*e) {
                                if (!strcmp (e, "meet")) {
                                        clip = SP_ASPECT_MEET;
                                } else if (!strcmp (e, "slice")) {
index 558fa41575704104489a972a49151f5fb61c65f2..be4d37909f292e2e028833c3a05b184a633f06a9 100644 (file)
@@ -764,7 +764,7 @@ sp_image_set (SPObject *object, unsigned int key, const gchar *value)
                 }
                 clip = SP_ASPECT_MEET;
                 while (*e && *e == 32) e += 1;
-                if (e) {
+                if (*e) {
                     if (!strcmp (e, "meet")) {
                         clip = SP_ASPECT_MEET;
                     } else if (!strcmp (e, "slice")) {
index 80c04c59f30461dec782391359e0b52b1f5d34c9..9c9fdb207bb4e94c993809d2e56d0b6af91ea043 100644 (file)
@@ -322,7 +322,7 @@ sp_root_set(SPObject *object, unsigned int key, gchar const *value)
                 }
                 clip = SP_ASPECT_MEET;
                 while (*e && *e == 32) e += 1;
-                if (e) {
+                if (*e) {
                     if (!strcmp(e, "meet")) {
                         clip = SP_ASPECT_MEET;
                     } else if (!strcmp(e, "slice")) {
index 8be53dd50d9944652dd5435e7e63d0e0a9257103..5525513c156de6c044e52df7371d506343981d63 100644 (file)
@@ -214,7 +214,7 @@ sp_symbol_set (SPObject *object, unsigned int key, const gchar *value)
             }
             clip = SP_ASPECT_MEET;
             while (*e && *e == 32) e += 1;
-            if (e) {
+            if (*e) {
                 if (!strcmp (e, "meet")) {
                     clip = SP_ASPECT_MEET;
                 } else if (!strcmp (e, "slice")) {