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:
Vadim Zeitlin
2008-10-27 18:09:05 +00:00
parent d084ca71b0
commit 988707fe39

View File

@@ -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;
}