bugfix
authorRichard Fairhurst <richard@systemed.net>
Thu, 6 May 2010 09:39:23 +0000 (09:39 +0000)
committerRichard Fairhurst <richard@systemed.net>
Thu, 6 May 2010 09:39:23 +0000 (09:39 +0000)
net/systemeD/halcyon/styleparser/MapCSS.as

index 918012c02c313fe60cae653592311a4cb1c129d1..9c50c5e6598d7f4ae9c152f19f5972dc534fb5df 100755 (executable)
@@ -334,13 +334,14 @@ package net.systemeD.halcyon.styleparser {
                        xs.sublayer=10;
 
                        // Munge special values
-                       if (t['font_weight']    ) { t['font_bold'  ]    = t['font_weight'    ].match(BOLD  )    ? true : false; }
-                       if (t['font_style']     ) { t['font_italic']    = t['font_style'     ].match(ITALIC)    ? true : false; }
-                       if (t['text_decoration']) { t['font_underline'] = t['text_decoration'].match(UNDERLINE) ? true : false; }
-                       if (t['text_position']  ) { t['text_center']    = t['text_position'  ].match(CENTER)    ? true : false; }
+                       if (t['font_weight']    ) { t['font_bold'  ]    = t['font_weight'    ].match(BOLD  )    ? true : false; delete t['font_weight']; }
+                       if (t['font_style']     ) { t['font_italic']    = t['font_style'     ].match(ITALIC)    ? true : false; delete t['font_style']; }
+                       if (t['text_decoration']) { t['font_underline'] = t['text_decoration'].match(UNDERLINE) ? true : false; delete t['text_decoration']; }
+                       if (t['text_position']  ) { t['text_center']    = t['text_position'  ].match(CENTER)    ? true : false; delete t['text_position']; }
                        if (t['text_transform']) {
                                // ** needs other transformations, e.g. lower-case, sentence-case
                                if (t['text_transform'].match(CAPS)) { t['font_caps']=true; } else { t['font_caps']=false; }
+                               delete t['text_transform'];
                        }
 
                        // ** Do compound settings (e.g. line: 5px dotted blue;)