summaryrefslogtreecommitdiffstats
path: root/src/color.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-06-05 20:40:25 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-06-05 20:40:25 +0000
commit47aa8306a659760d5967944af42da27a703dfc63 (patch)
tree570ca8238bc3d669f6c7c4395fa2b6af7744742d /src/color.cpp
parentHeader cleaning for GTK+3 migration (diff)
downloadinkscape-47aa8306a659760d5967944af42da27a703dfc63.tar.gz
inkscape-47aa8306a659760d5967944af42da27a703dfc63.zip
various
(bzr r11461)
Diffstat (limited to 'src/color.cpp')
-rw-r--r--src/color.cpp4
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];