Hey Riccardo, I committed an implementation of -isDrawingToScreen for cairo and tested that graphos no longer prints the selection handles to PDFs. :-) -Eric
On 2012-09-26, at 6:29 AM, Riccardo Mottola <riccardo.mott...@libero.it> wrote: > Hi, >> Greg reported me bug about Graphos and I think it is a GS bug, since it >> works on Mac. >> >> During printing, objects should not drawn their editors (= shape or path >> handles). To do that, I use: >> >> if ([[NSGraphicsContext currentContext] isDrawingToScreen]) >> [editor draw]; >> >> thus I suppose that on GS (cairo backend at least) it returns true even >> while printing. >> >> Testing is simple: Launch graphos, select some shape, look at the handles, >> print (preview). The handles should not print. They do on GS, they don't on >> mac. >> > The bug appears to be backend specific: it works on xlib but not on cairo. > > Riccardo > > _______________________________________________ > Discuss-gnustep mailing list > discuss-gnus...@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev