aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-25 16:32:07 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-25 16:32:07 +0200
commite5a4d26dc7d17b158230c161a38479e5abe17fb5 (patch)
treed62e70cc97ca80981c5531cbf5274db4b0397e39
parent73a0ed9f894790c6cd6e14c6b0e7c7b9f19e3cd3 (diff)
Don't set first style as default
-rw-r--r--src/stylesheet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index b5cad74..08acc9b 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -65,8 +65,6 @@ struct style *new_style(StyleSheet *ss, const char *name, const char *pname)
sty->lop.w = 100.0;
sty->lop.h = 100.0;
- if ( ss->default_style == NULL ) ss->default_style = sty;
-
n = ss->n_styles;
styles_new = realloc(ss->styles, (n+1)*sizeof(sty));
if ( styles_new == NULL ) {