diff options
-rw-r--r-- | src/lib/VSDTypes.cpp | 19 | ||||
-rw-r--r-- | src/lib/VSDTypes.h | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/VSDTypes.cpp b/src/lib/VSDTypes.cpp index 0b2182f..4483f25 100644 --- a/src/lib/VSDTypes.cpp +++ b/src/lib/VSDTypes.cpp @@ -12,6 +12,25 @@ namespace libvisio { +const XForm &XForm::operator=(const XForm &xform) +{ + if (this != &xform) + { + pinX = xform.pinX; + pinY = xform.pinY; + height = xform.height; + width = xform.width; + pinLocX = xform.pinLocX; + pinLocY = xform.pinLocY; + angle = xform.angle; + flipX = xform.flipX; + flipY = xform.flipY; + x = xform.x; + y = xform.y; + } + return *this; +} + const VSDName &VSDName::operator=(const VSDName &name) { if (this != &name) diff --git a/src/lib/VSDTypes.h b/src/lib/VSDTypes.h index adf62a3..35e8cf1 100644 --- a/src/lib/VSDTypes.h +++ b/src/lib/VSDTypes.h @@ -38,7 +38,7 @@ struct XForm XForm(const XForm &xform) : pinX(xform.pinX), pinY(xform.pinY), height(xform.height), width(xform.width), pinLocX(xform.pinLocX), pinLocY(xform.pinLocY), angle(xform.angle), flipX(xform.flipX), flipY(xform.flipY), x(xform.x), y(xform.y) {} - + const XForm &operator=(const XForm &xform); }; struct XForm1D |