diff options
-rw-r--r-- | src/lib/VSDStyles.cpp | 20 | ||||
-rw-r--r-- | src/lib/VSDStyles.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/VSDStyles.cpp b/src/lib/VSDStyles.cpp index 1ea27a9..ee48226 100644 --- a/src/lib/VSDStyles.cpp +++ b/src/lib/VSDStyles.cpp @@ -87,6 +87,26 @@ const VSDLineStyle &VSDLineStyle::operator=(const VSDLineStyle &style) return *this; } +const VSDFillStyle &VSDFillStyle::operator=(const VSDFillStyle &style) +{ + if (this != &style) + { + fgColour = style.fgColour; + bgColour = style.bgColour; + pattern = style.pattern; + fgTransparency = style.fgTransparency; + bgTransparency = style.bgTransparency; + shadowFgColour = style.shadowFgColour; + shadowPattern = style.shadowPattern; + shadowOffsetX = style.shadowOffsetX; + shadowOffsetY = style.shadowOffsetY; + qsFillColour = style.qsFillColour; + qsShadowColour = style.qsShadowColour; + qsFillMatrix = style.qsFillMatrix; + } + return *this; +} + } libvisio::VSDStyles::VSDStyles() : diff --git a/src/lib/VSDStyles.h b/src/lib/VSDStyles.h index 38f3b6d..b793cbb 100644 --- a/src/lib/VSDStyles.h +++ b/src/lib/VSDStyles.h @@ -180,6 +180,7 @@ struct VSDFillStyle qsFillColour(style.qsFillColour), qsShadowColour(style.qsShadowColour), qsFillMatrix(style.qsFillMatrix) {} ~VSDFillStyle() {} + const VSDFillStyle &operator=(const VSDFillStyle &style); void override(const VSDOptionalFillStyle &style, const VSDXTheme *theme) { ASSIGN_OPTIONAL(style.pattern, pattern); |