changeset 562:781feeb4d59f

* More on track matching
author Chris Cannam
date Tue, 30 Mar 2010 06:29:08 +0000
parents aced8ec09bc8
children 5586c652f1b6
files layer/TextLayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/layer/TextLayer.cpp	Mon Jul 19 17:08:56 2010 +0000
+++ b/layer/TextLayer.cpp	Tue Mar 30 06:29:08 2010 +0000
@@ -170,7 +170,7 @@
 
         int yd = getYForHeight(v, (*i).height) - y;
         int xd = v->getXForFrame((*i).frame) - x;
-        float distance = sqrt(yd*yd + xd*xd);
+        float distance = sqrtf(yd*yd + xd*xd);
 
         if (nearestDistance == -1 || distance < nearestDistance) {
             nearestDistance = distance;