]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix swapped arguments 247/head
authorAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>
Wed, 15 Sep 2021 17:29:47 +0000 (13:29 -0400)
committerAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>
Wed, 15 Sep 2021 17:43:52 +0000 (13:43 -0400)
ppdc/ppdc-source.cxx
ppdc/ppdc.cxx

index b28c4724ffb131e4ed8e812155e6c0586ff0aad8..d1e942662d1ccabbddcf6d626e0e92d83f440d26 100644 (file)
@@ -537,7 +537,7 @@ ppdcSource::get_color_profile(
   for (i = 0; i < 9; i ++)
     m[i] = get_float(fp);
 
-  return (new ppdcProfile(resolution, media_type, g, d, m));
+  return (new ppdcProfile(resolution, media_type, d, g, m));
 }
 
 
@@ -1880,7 +1880,7 @@ ppdcSource::get_simple_profile(ppdcFile *fp)
   }
 
   // Return the new profile...
-  return (new ppdcProfile(resolution, media_type, g, kd, m));
+  return (new ppdcProfile(resolution, media_type, kd, g, m));
 }
 
 
index 304649174a8b60b7693655f7a4b8fbb7e6300ae8..385f456413ed4c7b5354610db3a5b05545a10d62 100644 (file)
@@ -229,7 +229,6 @@ main(int  argc,                             // I - Number of command-line arguments
 
          default :                     // Unknown
              usage();
-             break;
        }
     }
     else
@@ -393,7 +392,7 @@ main(int  argc,                             // I - Number of command-line arguments
        return (1);
       }
 
-      if (templocales != locales)
+      if (templocales && templocales != locales)
         templocales->release();
 
       cupsFileClose(fp);