From 33da924cabc1b580cca04ea77023e6a1e3e669c3 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 30 Apr 2014 14:05:25 +0200 Subject: Style rewrite: fix two more buglets. (bzr r13325) --- src/style-internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/style-internal.h b/src/style-internal.h index 1e878f1f6..0901cc0bc 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -229,7 +229,8 @@ class SPIScale24 : public SPIBase { SPIScale24& operator=(const SPIScale24& rhs) { SPIBase::operator=(rhs); - value = rhs.value; + value = rhs.value; + value_default = rhs.value_default; return *this; } @@ -400,6 +401,7 @@ class SPIString : public SPIBase { SPIString& operator=(const SPIString& rhs) { SPIBase::operator=(rhs); value = rhs.value?g_strdup(rhs.value):NULL; + value_default = rhs.value_default?g_strdup(rhs.value_default):NULL; return *this; } -- cgit v1.2.3