app/text_area: fix build error with gcc 10

Fixes #4098
This commit is contained in:
Norman Feske 2021-04-29 16:33:12 +02:00
parent c4e3d3dbc4
commit 4563baae77

View File

@ -89,6 +89,12 @@ struct Text_area::Dialog : private Dynamic_rom_session::Xml_producer
Position(Position const &other) : x(other.x), y(other.y) { }
Position &operator = (Position const &other)
{
x = other.x, y = other.y;
return *this;
}
bool operator != (Position const &other) const
{
return (x.value != other.x.value) || (y.value != other.y.value);