diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-13 00:04:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-13 00:04:39 +0100 |
| commit | 79c7daee26c3695ed1d8b1e9feedb964a9cf4e87 (patch) | |
| tree | 3e12d45ed30151b8881e3dcecbc2e236a3b4b6a7 /src/wx/timeline.cc | |
| parent | d3beea99d7872607cf85cd59be9caf80901e44de (diff) | |
Fix OS X warning.
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 5 |
1 files 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) ); } |
