Bugs item #3158783, was opened at 2011-01-15 05:50
Message generated for change (Settings changed) made by thepurlieu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=409538&aid=3158783&group_id=33921

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Drawing Engine
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: cloudfish (cloudfish)
>Assigned to: Julian Lamb (thepurlieu)
Summary: printout only shows 1 layer

Initial Comment:
When a print-out is done with multiple layers visible, only the bottommost 
layer in the list is drawn.

The cause seems to be that gerbv_render_cairo_set_scale_and_translation is 
called from gerbv_render_layer_to_cairo_target for every layer, so only the 
first iteration of the loop rendering the layers (callbacks.c:484) has correct 
scaling.

Replacing the loop with "gerbv_render_all_layers_to_cairo_target (mainProject, 
cr, &renderInfo);" appears to fix it.

Thanks! :)

----------------------------------------------------------------------

>Comment By: Julian Lamb (thepurlieu)
Date: 2011-01-15 11:20

Message:
Thanks for spotting and fixing this.  I'm surprised this wasn't spotted
before...I guess not many people use the printing feature.

Your fix worked, however I replaced it with the "for_vector_output"
version of the function, which does some tweaks for non-screen output. 
Cheers!

Julian

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=409538&aid=3158783&group_id=33921

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to