Commit 70dde293 authored by sovietmagic's avatar sovietmagic
Browse files

Fix #256 Removed StrokeWidth check from Path method of circle, ellipse, polygon and rectangle.

These shapes now render their fill, even if StrokeWidth less or equals zero.
parent 7afd39a1
......@@ -89,7 +89,7 @@ namespace Svg
/// </summary>
public override GraphicsPath Path(ISvgRenderer renderer)
{
if ((this._path == null || this.IsPathDirty) && base.StrokeWidth > 0)
if (this._path == null || this.IsPathDirty)
{
float halfStrokeWidth = base.StrokeWidth / 2;
......
......@@ -95,7 +95,7 @@ namespace Svg
/// <value></value>
public override GraphicsPath Path(ISvgRenderer renderer)
{
if ((this._path == null || this.IsPathDirty) && base.StrokeWidth > 0)
if (this._path == null || this.IsPathDirty)
{
float halfStrokeWidth = base.StrokeWidth / 2;
......
......@@ -61,7 +61,7 @@ namespace Svg
public override GraphicsPath Path(ISvgRenderer renderer)
{
if ((this._path == null || this.IsPathDirty) && base.StrokeWidth > 0)
if (this._path == null || this.IsPathDirty)
{
this._path = new GraphicsPath();
this._path.StartFigure();
......
......@@ -182,7 +182,7 @@ namespace Svg
/// </summary>
public override GraphicsPath Path(ISvgRenderer renderer)
{
if ((_path == null || IsPathDirty) && base.StrokeWidth > 0)
if (_path == null || IsPathDirty)
{
var halfStrokeWidth = new SvgUnit(base.StrokeWidth / 2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment