# HG changeset patch # User Chris Cannam # Date 1269930548 0 # Node ID 781feeb4d59fc666e0262d08c96b41f283e3a6cb # Parent aced8ec09bc839a95049699f12602e3543764fd8 * More on track matching diff -r aced8ec09bc8 -r 781feeb4d59f layer/TextLayer.cpp --- 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;