Skip to content

Commit

Permalink
Merge pull request #96 from dotnetprojects/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jogibear9988 committed Apr 11, 2024
2 parents eb6eff9 + a88feb6 commit 0068338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SVGImage/SVG/SVGImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ static void OnSizeTypeChanged(DependencyObject d, DependencyPropertyChangedEvent

static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var sourceUri = new Uri(e.NewValue.ToString(), UriKind.Relative);
var sourceUri = e.NewValue != null ? new Uri(e.NewValue.ToString(), UriKind.Relative) : null;
var resource = e.NewValue != null ? Application.GetResourceStream(sourceUri) : null;
((SVGImage)d).SetImage(resource != null ? resource.Stream : null);
}
Expand Down

0 comments on commit 0068338

Please sign in to comment.