Fix broken style-merging behaviour
[potlatch2.git] / net / systemeD / halcyon / styleparser / ShapeStyle.as
index 1ec99967c869c7552aabba1d2cb2b221cbc3d60d..ca180df4e9780fc5993c68a15c5c71e362e98f60 100644 (file)
@@ -4,7 +4,7 @@ package net.systemeD.halcyon.styleparser {
        
        public class ShapeStyle extends Style {
 
-               public var width:Number=0;
+               public var width:Number;
                public var color:Number;
                public var opacity:Number;
                public var dashes:Array=[];
@@ -32,7 +32,7 @@ package net.systemeD.halcyon.styleparser {
                }
                
                override public function get drawn():Boolean {
-                       return (fill_image || !isNaN(fill_color) || width || casing_width);
+                       return (fill_image || !isNaN(fill_color) || !isNaN(width) || casing_width);
                }
 
                public function applyStrokeStyle(g:Graphics):void {