Commit 7a093b52 authored by Eric Domke's avatar Eric Domke
Browse files

Pulling Upstream Changes and Fixing Merge

parent 9960f2c9
......@@ -163,7 +163,7 @@ namespace Svg
if (this.StrokeDashArray != null && this.StrokeDashArray.Count > 0)
{
/* divide by stroke width - GDI behaviour that I don't quite understand yet.*/
pen.DashPattern = this.StrokeDashArray.ConvertAll(u => u.Value/((strokeWidth <= 0) ? 1 : strokeWidth)).ToArray();
pen.DashPattern = this.StrokeDashArray.ConvertAll(u => ((u.Value <= 0) ? 1 : u.Value) / ((strokeWidth <= 0) ? 1 : strokeWidth)).ToArray();
}
renderer.DrawPath(pen, this.Path);
......@@ -247,4 +247,4 @@ namespace Svg
}
}
}
\ No newline at end of file
}
......@@ -294,11 +294,11 @@ namespace Svg
{
case FontParseState.fontFamilyNext:
this.FontFamily = string.Join(" ", parts, i + 1, parts.Length - (i + 1));
i = int.MaxValue;
i = int.MaxValue - 2;
break;
case FontParseState.fontFamilyCurr:
this.FontFamily = string.Join(" ", parts, i, parts.Length - (i));
i = int.MaxValue;
i = int.MaxValue - 2;
break;
}
......
......@@ -8,6 +8,7 @@ namespace Svg.Pathing
{
public override void AddToPath(System.Drawing.Drawing2D.GraphicsPath graphicsPath)
{
// Important for custom line caps. Force the path the close with an explicit line, not just an implicit close of the figure.
if (graphicsPath.PointCount > 0 && !graphicsPath.PathPoints[0].Equals(graphicsPath.PathPoints[graphicsPath.PathPoints.Length - 1]))
{
......
......@@ -10,7 +10,6 @@ namespace Svg
[SvgElement("tspan")]
public class SvgTextSpan : SvgTextBase
{
public override SvgElement DeepCopy()
{
return DeepCopy<SvgTextSpan>();
......
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