Code sync
[external/hplip.git] / packaging / hpcups-top-margins-not-respected.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## hpcups-top-margins-not-respected.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.11.10~/prnt/hpcups/HPCupsFilter.cpp hplip-3.11.10/prnt/hpcups/HPCupsFilter.cpp
9 --- hplip-3.11.10~/prnt/hpcups/HPCupsFilter.cpp 2011-12-01 10:59:18.504613295 +0100
10 +++ hplip-3.11.10/prnt/hpcups/HPCupsFilter.cpp  2011-12-01 11:00:17.088807279 +0100
11 @@ -544,18 +544,10 @@
12          return true;
13      }
14  
15 -    if(header->cupsColorSpace == CUPS_CSPACE_K){
16 -       if (*input_raster == 0x00 &&
17 -            !(memcmp(input_raster + 1, input_raster, length_in_bytes - 1))) {
18 -        return true;
19 -        }
20 -    }
21 -    else{
22          if (*input_raster == 0xFF &&
23                !(memcmp(input_raster + 1, input_raster, length_in_bytes - 1))) {
24          return true;
25          }
26 -    }
27      return false;
28  }
29