summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-04-23 19:17:26 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-04-23 19:17:26 +0000
commitf9be42a5e41dc5bb2a1676e9f64e3990624072f4 (patch)
tree2fd1496c5fea73918183f52364a3597cb900cd8a /src
parentAdd MapSymbols from OpenStreetMap. (diff)
downloadinkscape-f9be42a5e41dc5bb2a1676e9f64e3990624072f4.tar.gz
inkscape-f9be42a5e41dc5bb2a1676e9f64e3990624072f4.zip
revert r12297
(bzr r12302)
Diffstat (limited to 'src')
-rw-r--r--src/style.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/style.h b/src/style.h
index f456eaa61..2b98c9e5d 100644
--- a/src/style.h
+++ b/src/style.h
@@ -136,11 +136,11 @@ struct SPILength {
/// Paint type internal to SPStyle.
struct SPIPaint {
- bool set; //todo check if other properties are also booleans
- unsigned inherit;
- unsigned currentcolor;
- unsigned int colorSet;
- unsigned int noneSet;
+ unsigned int set : 1; //c++ bitfields are used here as opposed to bools to reduce memory consumption, see http://tinyurl.com/cswh6mq
+ unsigned int inherit : 1;
+ unsigned int currentcolor : 1;
+ unsigned int colorSet : 1;
+ unsigned int noneSet : 1;
struct {
SPPaintServerReference *href;
SPColor color;