mapper
mapper copied to clipboard
Circle symbol inaccuracy
dg0yt reported on Sourceforge [tickets:#51]:
Circle symbols show a visible deviation from a proper circle shape. The following picture contains a blue circle symbol (312 Well) from an OpenOrienteering screenshot over a black circle created in Gimp:

This is probably a Qt issue.
- labels: --> Graphics, Qt
- category: --> Bug_Report
- status: open --> wont-fix
Changing this ticket to closed status. It will remain visible in Milestone - bugs -, but not in search Open Bugs.
- Milestone: - bugs - --> wont-fix
- Milestone: invalid --> - bugs -
The circle is drawn as a line with QPainter::drawEllipse():
https://github.com/OpenOrienteering/mapper/blob/9667e45ba36b587c7bed32fca88ae9c0a11d2bcd/src/core/renderables/renderable_implementation.cpp#L138-L144
This maps to similar vector drawing instruction in PDF or printing, possibly creating a more accurate shape in output than on screen.
An alternative approach might be:
- Take the outer circle, as the outline of a form.
- Scale the outer circle down to the inner circle, as a hole in the form.
- Draw the form.