Mercurial > hg > svgui
comparison layer/Layer.cpp @ 545:be5c35d3f409
* solaris build fixes
author | Chris Cannam |
---|---|
date | Thu, 10 Sep 2009 18:44:45 +0000 |
parents | e1a9e478b7f2 |
children | 1fe7951a61e8 |
comparison
equal
deleted
inserted
replaced
544:1dd2cddc32eb | 545:be5c35d3f409 |
---|---|
552 int cx = i->pixrect.x() + i->pixrect.width()/2; | 552 int cx = i->pixrect.x() + i->pixrect.width()/2; |
553 int cy = i->pixrect.y() + i->pixrect.height()/2; | 553 int cy = i->pixrect.y() + i->pixrect.height()/2; |
554 int xd = focusPoint.x() - cx; | 554 int xd = focusPoint.x() - cx; |
555 int yd = focusPoint.y() - cy; | 555 int yd = focusPoint.y() - cy; |
556 | 556 |
557 float d = sqrt(xd * xd + yd * yd); | 557 float d = sqrt(float(xd * xd + yd * yd)); |
558 | 558 |
559 if (focusRectItr == m_measureRects.end() || d < frDist) { | 559 if (focusRectItr == m_measureRects.end() || d < frDist) { |
560 focusRectItr = i; | 560 focusRectItr = i; |
561 frDist = d; | 561 frDist = d; |
562 } | 562 } |