Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushub committed Sep 20, 2019
2 parents a7cb2a6 + 442cc56 commit a30be58
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
Binary file added Output/SharpVectors.Core.dll
Binary file not shown.
Binary file added Output/SharpVectors.Dom.dll
Binary file not shown.
Binary file added Output/SharpVectors.Runtime.Wpf.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/SharpVectorModel/BasicTypes/SvgElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public ISvgElementInstance ElementInstance

public string ResolveUri(string uri)
{
uri = uri.Trim();
uri = uri.Trim().Trim(new char[] { '\"', '\'' });
if (uri.StartsWith("#", StringComparison.OrdinalIgnoreCase))
{
return uri;
Expand Down
2 changes: 1 addition & 1 deletion Source/SharpVectorModel/BasicTypes/SvgUriReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public string AbsoluteUri
if (_ownerElement.HasAttribute("href", SvgDocument.XLinkNamespace) ||
_ownerElement.HasAttribute("href"))
{
string href = Href.AnimVal.Trim();
string href = Href.AnimVal.Trim().Trim(new char[] { '\"', '\'' });

if (href.StartsWith("#", StringComparison.OrdinalIgnoreCase))
{
Expand Down
2 changes: 1 addition & 1 deletion Source/SharpVectorModel/DocumentStructure/SvgDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ public XmlNode GetNodeByUri(string absoluteUrl)
return null;
}

absoluteUrl = absoluteUrl.Trim();
absoluteUrl = absoluteUrl.Trim().Trim(new char[] { '\"', '\'' });
if (absoluteUrl.StartsWith("#", StringComparison.OrdinalIgnoreCase))
{
return GetElementById(absoluteUrl.Substring(1));
Expand Down
1 change: 1 addition & 0 deletions Source/SharpVectorRenderingWpf/Wpf/WpfRendering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ private static WpfRendering CreateRendering(SvgElement svgElement)
/// </returns>
public static WpfRendering CreateByUri(SvgDocument document, string baseUri, string url)
{
url = url.Trim().Trim(new char[] { '\"', '\'' });
if (url.StartsWith("#", StringComparison.OrdinalIgnoreCase))
{
// do nothing
Expand Down

0 comments on commit a30be58

Please sign in to comment.