Closed pele65 closed 5 years ago
Commit 48af68eb8aca7749285750d00ccd8f86e531fd47 hopefully fixes this issue.
As far as I tested the code, everything is ok now. There may be a difference when drawing a point or a spline with transparent pen. But this is too exotic even for me (at the moment ;-) ) My use is creating maps, sometimes with invisible marks to force borders in a bounding box.
When drawing on a wxPdfDC, the pen and the brush may be transparent at the same time. In this case the drawing operation shall be no operation. But in fact the drawing in your sample is invisible on the screen only. In the pdf the element is drawn in black colour. This happens because the wxPdfDocument drawing style wxPDF_STYLE_NOOP is not handled properly. Maybe in each drawing operation in wxPdfDocument there should just be a quick return if wxPDF_STYLE_NOOP is given.
Test code: