summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbuliabyak <>2013-09-28 04:09:04 +0000
committerbuliabyak <>2013-09-28 04:09:04 +0000
commitad925e4014535e5f21794ee8ece424ffa83f94e5 (patch)
tree5db8a71f322ec8ed91309beee30e58f1e5ce613d /src
parentcppcheck: performance + variable type (diff)
downloadinkscape-ad925e4014535e5f21794ee8ece424ffa83f94e5.tar.gz
inkscape-ad925e4014535e5f21794ee8ece424ffa83f94e5.zip
bug fix: xml:space was not initialized, getting random values
(bzr r12604)
Diffstat (limited to 'src')
-rw-r--r--src/sp-object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-object.h b/src/sp-object.h
index 4e9a6c938..bcaa1dac7 100644
--- a/src/sp-object.h
+++ b/src/sp-object.h
@@ -106,7 +106,9 @@ enum {
class SPDocument;
/// Internal class consisting of two bits.
-struct SPIXmlSpace {
+class SPIXmlSpace {
+public:
+ SPIXmlSpace(): set(0), value(SP_XML_SPACE_DEFAULT) {};
guint set : 1;
guint value : 1;
};