Fix DrawArc() implementation in wxGtkPrinterDC.

It didn't count the angles correctly when they were equal to 90 degrees.

Also simplify the code by avoiding special cases for 90 degrees anyhow, just
call atan2() directly. And also avoid converting the angles to degrees just to
convert them back to radians immediately afterwards.

See #15609.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-10-25 17:38:37 +00:00
parent 8b3102cfb6
commit db7af3c2a7
2 changed files with 22 additions and 25 deletions

View File

@@ -573,6 +573,10 @@ All (GUI):
- Fix wxListEvent::GetData() in LLP64 builds.
wxGTK:
- Fix DrawArc() when printing.
wxMSW:
- Optional better handling of SAFEARRAYs in wxAutomationObject (PB).