From 7a767e0b3ea685f6c0b0beac97c8ae7060dd9595 Mon Sep 17 00:00:00 2001 From: Alfonso Gregory <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 15 Sep 2021 13:28:13 -0400 Subject: [PATCH] Fix swapped arguments --- ppdc/ppdc-source.cxx | 4 ++-- ppdc/ppdc.cxx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx index a42449765..aec291314 100644 --- a/ppdc/ppdc-source.cxx +++ b/ppdc/ppdc-source.cxx @@ -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)); } diff --git a/ppdc/ppdc.cxx b/ppdc/ppdc.cxx index 304649174..385f45641 100644 --- a/ppdc/ppdc.cxx +++ b/ppdc/ppdc.cxx @@ -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);