From 4563baae77b27ea62a2def766a60a70ec9a18aec Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 29 Apr 2021 16:33:12 +0200 Subject: [PATCH] app/text_area: fix build error with gcc 10 Fixes #4098 --- repos/gems/src/app/text_area/dialog.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repos/gems/src/app/text_area/dialog.h b/repos/gems/src/app/text_area/dialog.h index 0022210e9c..ab4ef17d9e 100644 --- a/repos/gems/src/app/text_area/dialog.h +++ b/repos/gems/src/app/text_area/dialog.h @@ -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);