Bug 690271 - bit devices (gdevbit, e.g. bitcmyk) don't work without -dLastLine setting
Summary: bit devices (gdevbit, e.g. bitcmyk) don't work without -dLastLine setting
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Other Driver (show other bugs)
Version: 8.64
Hardware: All All
: P4 major
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 04:08 UTC by Piotr Strzelczyk
Modified: 2009-02-06 11:22 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
gdevbit.c patch (72 bytes, patch)
2009-02-06 04:12 UTC, Piotr Strzelczyk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Strzelczyk 2009-02-06 04:08:59 UTC
Bug introduced by ,,2008-08-06T18:28:20.524086Z Ray Johnston'' change.
If -dLastLine is not set, bit devices produces 0 bytes long files.
It is caused by a mistake in gdevbit.c (patch included in the attachment).
Comment 1 Piotr Strzelczyk 2009-02-06 04:12:19 UTC
Created attachment 4779 [details]
gdevbit.c patch

variable ,,bottom'' is not used in loop below -- only ,,line_count'' is taken
in count.
Comment 2 Ray Johnston 2009-02-06 11:22:17 UTC
Thanks for sptting this. I committed a slightly different patch, but at least
I get the correct number of lines out when FirstLine==LastLine==0

Patch committed as rev 9452.