Commit 2e554577 authored by Hayk's avatar Hayk Committed by mrbean-bremen
Browse files

Issue #332

parent 7ce4de62
......@@ -13,7 +13,7 @@ namespace Svg
public partial class SvgElement
{
private bool _dirty;
/// <summary>
/// Gets or sets a value indicating whether this element's <see cref="Path"/> is dirty.
/// </summary>
......@@ -339,7 +339,7 @@ namespace Svg
this.IsPathDirty = true;
}
}
/// <summary>
/// Get the font information based on data stored with the text object or inherited from the parent.
/// </summary>
......@@ -433,7 +433,7 @@ namespace Svg
//styles from IE get sent through as lowercase.
foreach (var f in fontParts)
{
if (doc.FontDefns().TryGetValue(f, out sFaces)) return sFaces;
if (doc != null && doc.FontDefns().TryGetValue(f, out sFaces)) return sFaces;
getFamily = new Func<FontFamily, bool>(ff => string.Equals(ff.Name, f, StringComparison.OrdinalIgnoreCase));
family = families.FirstOrDefault(getFamily);
......
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