]> granicus.if.org Git - graphviz/commitdiff
fix hang in checkStyle() when style set
authorellson <devnull@localhost>
Thu, 28 Apr 2005 11:32:07 +0000 (11:32 +0000)
committerellson <devnull@localhost>
Thu, 28 Apr 2005 11:32:07 +0000 (11:32 +0000)
lib/common/shapes.c

index f800b47fc3f470d81ec25074671e9babfea99539..d85fe4cfa533869a0520f27d7b1f16fba0c89717 100644 (file)
@@ -278,7 +278,6 @@ static char **checkStyle(node_t * n, int *flagp)
        while ((p = *pp)) {
            if (strcmp(p, "filled") == 0) {
                istyle |= FILLED;
-               pp++;
            } else if (strcmp(p, "rounded") == 0) {
                istyle |= ROUNDED;
                qp = pp; /* remove rounded from list passed to renderer */
@@ -295,8 +294,8 @@ static char **checkStyle(node_t * n, int *flagp)
                } while (*qp);
            } else if (strcmp(p, "invis") == 0) {
                istyle |= INVISIBLE;
-               pp++;
            }
+           pp++;
        }
     }
     if ((poly = ND_shape(n)->polygon))