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

Issue #332

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