Author: eallen
Date: 2009-07-16 15:24:37 -0400 (Thu, 16 Jul 2009)
New Revision: 3501
Modified:
mgmt/trunk/cumin/open-flash-chart/charts/Line.as
Log:
Don't draw a line when the line width is 0
Modified: mgmt/trunk/cumin/open-flash-chart/charts/Line.as
===================================================================
--- mgmt/trunk/cumin/open-flash-chart/charts/Line.as 2009-07-16 18:36:28 UTC (rev 3500)
+++ mgmt/trunk/cumin/open-flash-chart/charts/Line.as 2009-07-16 19:24:37 UTC (rev 3501)
@@ -142,13 +142,15 @@
protected function draw_line(): void {
this.graphics.clear();
- this.graphics.lineStyle( this.props.get_colour('width'),
this.props.get_colour('colour') );
-
- if( this.line_style.style != 'solid' )
- this.dash_line();
- else
- this.solid_line();
-
+ var width:Number = this.props.get_colour('width');
+ if (width > 0) {
+ this.graphics.lineStyle( width, this.props.get_colour('colour') );
+
+ if( this.line_style.style != 'solid' )
+ this.dash_line();
+ else
+ this.solid_line();
+ }
}
public function move_dots( sc:ScreenCoordsBase ): void {
Show replies by date