use fabs() instead of abs() to fix mingw32 compilation [backport of r48782 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -706,7 +706,7 @@ void wxGDIPlusPathData::GetCurrentPoint( wxDouble* x, wxDouble* y) const
|
||||
void wxGDIPlusPathData::AddArc( wxDouble x, wxDouble y, wxDouble r, double startAngle, double endAngle, bool clockwise )
|
||||
{
|
||||
double sweepAngle = endAngle - startAngle ;
|
||||
if( abs(sweepAngle) >= 2*M_PI)
|
||||
if( fabs(sweepAngle) >= 2*M_PI)
|
||||
{
|
||||
sweepAngle = 2 * M_PI;
|
||||
}
|
||||
|
Reference in New Issue
Block a user