]> granicus.if.org Git - graphviz/commitdiff
Fix bug in font flags. We need to or the flags.
authorerg <devnull@localhost>
Wed, 13 Oct 2010 21:08:54 +0000 (21:08 +0000)
committererg <devnull@localhost>
Wed, 13 Oct 2010 21:08:54 +0000 (21:08 +0000)
lib/common/htmlparse.y

index 12209fe377116e4f4d25be7cc332d146746fd701..3d0fb79d05682c9611018ea735aa3d8cc8ed1e9e 100644 (file)
@@ -382,8 +382,8 @@ pushFont (htmlfont_t *f)
            f->size = curfont->size;
        if (!f->name && curfont->name)
            f->name = strdup(curfont->name);
-       if (!f->flags && curfont->flags)
-           f->flags = curfont->flags;
+       if (curfont->flags)
+           f->flags |= curfont->flags;
     }
 
     ft->cfont = dupFont (f);