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

Issue #332

parent 7ce4de62
...@@ -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