Fixed TextCtrl::value_was_changed() function to respect changes, when type of Field is coPoints.

This commit is contained in:
YuSanka 2023-08-08 12:00:11 +02:00
parent 096d10ef62
commit bb9a04fc48

View File

@ -588,6 +588,8 @@ bool TextCtrl::value_was_changed()
case coFloatOrPercent:
case coFloatsOrPercents:
return boost::any_cast<std::string>(m_value) != boost::any_cast<std::string>(val);
case coPoints:
return boost::any_cast<std::vector<Vec2d>>(m_value) != boost::any_cast<std::vector<Vec2d>>(val);
default:
return true;
}