bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patches for printing


From: Gregory John Casamento
Subject: Re: patches for printing
Date: Sun, 15 Oct 2006 08:31:07 -0700 (PDT)

I have inspected, tested and applied this patch.

Thanks for your contribution.
 
Later, GJC

--
Gregory Casamento

----- Original Message ----
From: Mark Tracy <tracy454@concentric.net>
To: bug-gnustep@gnu.org
Sent: Sunday, October 8, 2006 2:17:10 AM
Subject: patches for printing

I have fixed several bugs related to printing and PostScript  
generation. After that, I could actually find the bugs in my code. I  
tested the fixes on a project of mine that reads reads, displays,  
exports and prints chromatography data. It now generates valid .ps  
and .eps files. Originally written for Mac, I am converting it to  
GNUstep.

I suspect that there is another bug that fails to release the printed  
view, but I could not find it, and it was easier to work around it in  
my code.

System details: Suse Linux 10.0 running on Parallels Virtual Machine  
on MacOSX 10.4.8(intel). Gcc 4.0.2, libc 2.3.5, gnustep-make-1.13.0,  
gnustep-base-1.13.0, gnustep-gui-0.11.0, gnustep-back-0.11.0, with  
the default art backend.

Valgrind was very helpful for finding item #2.

Cheers,
Mark Tracy




ChangeLog

Sat. 07-Oct-2006 Mark Tracy <tracy454 at concentric dot net>

     1. NSView.m -beginDocument
         was misplacing subviews when generating PostScript for printing
         fix: force regeneration of coordinates

     2. GSStreamContext -GSSendBezierPath
         was giving invalid arguments to setdash
         cause: getLineDash was being called without initializing  
count with the size of the pattern buffer
         fix: count=10

     3. GSStreamContext did not implement GSRectFillList
         fix: copied code from GSGState.m

     4. NSPrintOperation would loop randomly if a custom view replies  
YES to -knowsPageRange
         cause: -_printPaginateWithInfo did not initialize info- 
 >pageScale, info->xpages, info->ypages
         fix: in -_printPaginateWithInfo set default pageScale=1.0  
outside conditional
         fix: in -_print set xpages and ypages from viewPageRange as  
reported by custom view

     5. NSPageLayout was setting a default page scale of 100
         cause: pageScale factor is displayed as percentage
         fix: pageScale*100 sent to textfield and textfield/100  
stored in pageScale

     6. NSPageLayout had different limits on scaling than NSPrintPanel
         fix: adjust formatter max






_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep







reply via email to

[Prev in Thread] Current Thread [Next in Thread]