Apache OpenOffice (AOO) Bugzilla – Issue 97399
Extraneous polygon edges on pdf export for DXF
Last modified: 2009-04-23 15:19:05 UTC
See $subject. Insert the dxf drawings from http://www.schiwa.de/OOo/dxf-beispiele/ into a doc & export to pdf -> results in very funny extra edges. Worked in 2.x, broke for 3.0
target
add keyword, version
Created attachment 59383 [details] hackaround
@pl: turns out drawArc() had start/end angle almost equal, and floating point arith went south. Hackaround attached, was about to swap in basegfx::tools::createPolygonFromEllipseSegment() instead (which properly handles a lot of corner cases, including this one), but then got stuck in the minutiae of outputting a B2DPolyPolygon to bezier, and keeping existing semantics & bugfixes...
interesting. would it be feasible in this degenerate case to replace the drawArc by a drawCircle or skip the arc part wholesale depending on which of start and stop angle is greater ? Would we be able to reliably detect which case was requested, circle or nothing ?
Yep, drawCirlce() would work, ultimately we'd need to check how the tools polygon behaves in these corner cases (might also be the empty arc) - so it's not that bad now, the code currently errs on the "empty arc" side, and just renders the line to the center if chord is requested. But before adding more tweaks, I'd go for basegfx probably. @pl: any CWS at hand I could put this into (the existing fix)?
Fixed in CWS vcl98.
please verify in CWS vcl98
Verified with cws vcl98 = ok
Still ok in OOo3.1RC1