Mercurial > hg > svgui
diff layer/Layer.cpp @ 545:be5c35d3f409
* solaris build fixes
author | Chris Cannam |
---|---|
date | Thu, 10 Sep 2009 18:44:45 +0000 |
parents | e1a9e478b7f2 |
children | 1fe7951a61e8 |
line wrap: on
line diff
--- a/layer/Layer.cpp Tue Aug 18 11:01:57 2009 +0000 +++ b/layer/Layer.cpp Thu Sep 10 18:44:45 2009 +0000 @@ -554,7 +554,7 @@ int xd = focusPoint.x() - cx; int yd = focusPoint.y() - cy; - float d = sqrt(xd * xd + yd * yd); + float d = sqrt(float(xd * xd + yd * yd)); if (focusRectItr == m_measureRects.end() || d < frDist) { focusRectItr = i;