We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee17c56 commit badb59eCopy full SHA for badb59e
cupsfilters/image-tiff.c
@@ -353,9 +353,13 @@ _cfImageReadTIFF(
353
// Allocate input and output buffers...
354
//
355
356
+ int multi_pixel = (photometric != PHOTOMETRIC_MINISWHITE &&
357
+ photometric != PHOTOMETRIC_MINISBLACK &&
358
+ (samples > 1 || photometric == PHOTOMETRIC_PALETTE));
359
+
360
if (orientation < ORIENTATION_LEFTTOP)
361
{
- if (samples > 1 || photometric == PHOTOMETRIC_PALETTE)
362
+ if (multi_pixel)
363
pstep = xdir * 3;
364
else
365
pstep = xdir;
@@ -378,7 +382,7 @@ _cfImageReadTIFF(
378
382
}
379
383
380
384
381
385
386
pstep = ydir * 3;
387
388
pstep = ydir;
0 commit comments