Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix swapped arguments #5961

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Fix swapped arguments
  • Loading branch information
AtariDreams committed Sep 15, 2021
commit 7a767e0b3ea685f6c0b0beac97c8ae7060dd9595
4 changes: 2 additions & 2 deletions ppdc/ppdc-source.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}


Expand Down Expand Up @@ -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));
}


Expand Down
3 changes: 1 addition & 2 deletions ppdc/ppdc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ main(int argc, // I - Number of command-line arguments

default : // Unknown
usage();
break;
}
}
else
Expand Down Expand Up @@ -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);
Expand Down