git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10976
a1ca3aef-8c08-0410-bb20-
df032aa958be
- The configure script now prefers Clang over GCC.
- Fixed a compile problem on AIX (STR #4307)
+ - Fixed a rounding error in the PWG media size mapping code
+ (<rdar://problem/13493241>)
- Fixed several ipptool test files that used old STATUS names.
- Kerberos credentials could get truncated when printing to a shared
printer.
if (!strcmp(ptr, "mm"))
{
- size->width = (int)(w * 100);
- size->length = (int)(l * 100);
+ size->width = (int)(w * 100 + 0.5);
+ size->length = (int)(l * 100 + 0.5);
}
else
{
- size->width = (int)(w * 2540);
- size->length = (int)(l * 2540);
+ size->width = (int)(w * 2540 + 0.5);
+ size->length = (int)(l * 2540 + 0.5);
}
strlcpy(cg->pwg_name, pwg, sizeof(cg->pwg_name));