]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/graphics.cpp
added disambiguation for Clear() too
[wxWidgets.git] / src / msw / graphics.cpp
index f6eb219ca72ac01acbcd6946c3f24d2c733b995a..a637adf8c4b0d6627ab73cc037b3d7dc175a912a 100644 (file)
@@ -668,7 +668,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;
     }