fix drawing bug

This commit is contained in:
yonghye 2018-10-30 18:33:01 +09:00
parent 447e0148e4
commit e732494037

View File

@ -239,7 +239,7 @@ void label_img::removeFocusedObjectBox(QPoint point)
if(objBox.contains(point))
{
double distance = sqrt(pow(objBox.center().x() - point.x(), 2)+ pow(objBox.center().y() - point.y(), 2));
double distance = objBox.width() + objBox.height();
if(distance < nearestBoxDistance)
{
nearestBoxDistance = distance;