Fix compare of styles to accept not exactly same floats value for style

This commit is contained in:
Filip Sykala - NTB T15p 2024-01-11 12:31:52 +01:00
parent 6bd9c50c7a
commit cecbd8aef1

View File

@ -213,8 +213,8 @@ public:
{
return EmbossStyle::operator==(other) &&
projection == other.projection &&
distance == other.distance &&
angle == other.angle;
is_approx(distance, other.distance) &&
is_approx(angle, other.angle);
}
// cache for view font name with maximal width in imgui