changeset 3148:5fb6ddbed9d0

Fixed #273: Added separator flag to styles with separator
author unexist
date Sun, 11 Dec 2011 16:54:40 +0100
parents 6a7ce3fceff6
children fc4142ae9281
files src/subtle/ruby.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/ruby.c	Sun Dec 11 16:53:05 2011 +0100
+++ b/src/subtle/ruby.c	Sun Dec 11 16:54:40 2011 +0100
@@ -1189,8 +1189,8 @@
   if(T_STRING == rb_type(value = rb_hash_lookup(params,
       CHAR2SYM("font"))) && !s->font)
     {
+      s->flags |= SUB_STYLE_FONT;
       s->font   = RubyFont(RSTRING_PTR(value));
-      s->flags |= SUB_STYLE_FONT;
 
       /* EWMH: Font */
       if(CHAR2SYM("all") == name)
@@ -1201,9 +1201,12 @@
   if(T_STRING == rb_type(value = rb_hash_lookup(params,
       CHAR2SYM("separator"))) && !s->separator)
     {
+      s->flags |= SUB_STYLE_SEPARATOR;
+
       /* Create new separator */
-      s->separator = (SubSeparator *)subSharedMemoryAlloc(1, sizeof(SubSeparator));
-      s->separator->string = strdup(RSTRING_PTR(value));
+      s->separator = (SubSeparator *)subSharedMemoryAlloc(1,
+        sizeof(SubSeparator));
+      s->separator->string  = strdup(RSTRING_PTR(value));
    }
 } /* }}} */