diff options
Diffstat (limited to 'src/gui/fonts')
-rw-r--r-- | src/gui/fonts/textchunksmall.cpp | 7 | ||||
-rw-r--r-- | src/gui/fonts/textchunksmall.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/fonts/textchunksmall.cpp b/src/gui/fonts/textchunksmall.cpp index afb66dacc..f8c84fdb8 100644 --- a/src/gui/fonts/textchunksmall.cpp +++ b/src/gui/fonts/textchunksmall.cpp @@ -40,6 +40,13 @@ TextChunkSmall::TextChunkSmall(const TextChunkSmall &old) : { } +void TextChunkSmall::operator=(const TextChunkSmall &chunk) +{ + text = chunk.text; + color = chunk.color; + color2 = chunk.color2; +} + bool TextChunkSmall::operator==(const TextChunkSmall &chunk) const { return (chunk.text == text && chunk.color == color diff --git a/src/gui/fonts/textchunksmall.h b/src/gui/fonts/textchunksmall.h index da5b83e6a..75c4e6dd7 100644 --- a/src/gui/fonts/textchunksmall.h +++ b/src/gui/fonts/textchunksmall.h @@ -38,7 +38,7 @@ class TextChunkSmall final bool operator==(const TextChunkSmall &restrict chunk) const restrict2; bool operator<(const TextChunkSmall &restrict chunk) const restrict2; - + void operator=(const TextChunkSmall &restrict chunk) restrict2; std::string text; Color color; Color color2; |