Browse Source

Enhanced exception message when the SVG image cannot be loaded successfully

Marcin Ziąbek 1 năm trước cách đây
mục cha
commit
27d6841642
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      Source/QuestPDF/Skia/SkSvgImage.cs

+ 0 - 1
Source/QuestPDF/Skia/SkSvgImage.cs

@@ -13,7 +13,6 @@ internal sealed class SkSvgImage : IDisposable
         using var data = SkData.FromBinary(System.Text.Encoding.UTF8.GetBytes(svgString));
 
         Instance = API.svg_create(data.Instance);
-        SkiaAPI.EnsureNotNull(Instance);
         
         if (Instance == IntPtr.Zero)
             throw new Exception("Cannot decode the provided SVG image.");