diff options
Diffstat (limited to 'src/color.cpp')
| -rw-r--r-- | src/color.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/color.cpp b/src/color.cpp index ca5d50f14..187a6ba6a 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -61,6 +61,10 @@ SPColor::~SPColor() SPColor& SPColor::operator= (SPColor const& other) { + if (this == &other){ + return *this; + } + SVGICCColor* tmp_icc = other.icc ? new SVGICCColor(*other.icc) : 0; v.c[0] = other.v.c[0]; |
