diff options
-rw-r--r-- | src/lib/VSDTypes.cpp | 12 | ||||
-rw-r--r-- | src/lib/VSDTypes.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/VSDTypes.cpp b/src/lib/VSDTypes.cpp index 4483f25..5739939 100644 --- a/src/lib/VSDTypes.cpp +++ b/src/lib/VSDTypes.cpp @@ -48,6 +48,18 @@ const VSDMisc &VSDMisc::operator=(const VSDMisc &misc) return *this; } +const VSDBullet &VSDBullet::operator=(const VSDBullet &bullet) +{ + if (this != &bullet) + { + m_bulletStr = bullet.m_bulletStr; + m_bulletFont = bullet.m_bulletFont; + m_bulletFontSize = bullet.m_bulletFontSize; + m_textPosAfterBullet = bullet.m_textPosAfterBullet; + } + return *this; +} + } // namespace libvisio /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ diff --git a/src/lib/VSDTypes.h b/src/lib/VSDTypes.h index 35e8cf1..721d7c9 100644 --- a/src/lib/VSDTypes.h +++ b/src/lib/VSDTypes.h @@ -252,6 +252,7 @@ struct VSDBullet m_bulletFont(bullet.m_bulletFont), m_bulletFontSize(bullet.m_bulletFontSize), m_textPosAfterBullet(bullet.m_textPosAfterBullet) {} + const VSDBullet &operator=(const VSDBullet &bullet); inline bool operator==(const VSDBullet &bullet) const { return ((m_bulletStr == bullet.m_bulletStr) && |