From b5b85e5b5b4983a7932a88b496f07e92583f44e6 Mon Sep 17 00:00:00 2001
From: Mark Watkins <jedimark@users.sourceforge.net>
Date: Fri, 26 Aug 2011 18:19:18 +1000
Subject: [PATCH] used wrong ABS function

---
 Graphs/gFooBar.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Graphs/gFooBar.cpp b/Graphs/gFooBar.cpp
index 380c12c7..1812fac7 100644
--- a/Graphs/gFooBar.cpp
+++ b/Graphs/gFooBar.cpp
@@ -84,7 +84,7 @@ void gFooBar::paint(gGraph & w,int left, int top, int width, int height)
     double py=((1/rmx)*(w.max_x-w.rmin_x))*width;
 
     int extra=0;
-    if (abs(px-py)<2) extra=2;
+    if (fabs(px-py)<2) extra=2;
 
     int hh=25;
     glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);