summaryrefslogtreecommitdiffstats
path: root/src/dom/css.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dom/css.h')
-rw-r--r--src/dom/css.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dom/css.h b/src/dom/css.h
index d9c124447..2776b6d20 100644
--- a/src/dom/css.h
+++ b/src/dom/css.h
@@ -1636,6 +1636,10 @@ public:
*/
CSSPrimitiveValue &operator=(const CSSPrimitiveValue &other)
{
+ if(this == &other)
+ {
+ return *this;
+ }
primitiveType = other.primitiveType;
doubleValue = other.doubleValue;
stringValue = other.stringValue;