From 79c7daee26c3695ed1d8b1e9feedb964a9cf4e87 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Oct 2018 00:04:39 +0100 Subject: Fix OS X warning. --- src/wx/timeline.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 0231bc400..a607b1eb1 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -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) ); } -- cgit v1.2.3