]> granicus.if.org Git - graphviz/commitdiff
firstlayer: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Aug 2021 00:01:19 +0000 (17:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:20 +0000 (19:28 -0700)
lib/common/emit.c

index f0554030d7bb76fe19d8d3d878564f81b6ab8e5a..b89054218a8e578d6b50d6dba07c813c6241456c 100644 (file)
@@ -1226,7 +1226,7 @@ static void firstlayer(GVJ_t *job, int** listp)
     if (job->gvc->layerlist) {
        int *list = job->gvc->layerlist;
        int cnt = *list++;
-       if ((cnt > 1) && (! (job->flags & GVDEVICE_DOES_LAYERS))) {
+       if (cnt > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) {
            agerr(AGWARN, "layers not supported in %s output\n",
                job->output_langname);
            list[1] = job->numLayers + 1; /* only one layer printed */
@@ -1235,8 +1235,7 @@ static void firstlayer(GVJ_t *job, int** listp)
        *listp = list;
     }
     else {
-       if ((job->numLayers > 1)
-               && (! (job->flags & GVDEVICE_DOES_LAYERS))) {
+       if (job->numLayers > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) {
            agerr(AGWARN, "layers not supported in %s output\n",
                job->output_langname);
            job->numLayers = 1;