Fix OS X warning.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Oct 2018 23:04:39 +0000 (00:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Oct 2018 23:04:39 +0000 (00:04 +0100)
src/wx/timeline.cc

index 0231bc400de29838f06d28f9108c014a81d58158..a607b1eb170fac26507bf8822a7a421a5fc8dafb 100644 (file)
@@ -48,6 +48,7 @@ using std::list;
 using std::cout;
 using std::min;
 using std::max;
+using std::abs;
 using boost::shared_ptr;
 using boost::weak_ptr;
 using boost::dynamic_pointer_cast;
@@ -188,8 +189,8 @@ Timeline::paint_main ()
                gc->DrawRectangle (
                        min (_down_point.x, _zoom_point->x),
                        min (_down_point.y, _zoom_point->y),
-                       fabs (_down_point.x - _zoom_point->x),
-                       fabs (_down_point.y - _zoom_point->y)
+                       abs (_down_point.x - _zoom_point->x),
+                       abs (_down_point.y - _zoom_point->y)
                        );
        }