Kaynağa Gözat

Enhanced exception message when the SVG image cannot be loaded successfully

Marcin Ziąbek 1 yıl önce
ebeveyn
işleme
27d6841642
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  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));
         using var data = SkData.FromBinary(System.Text.Encoding.UTF8.GetBytes(svgString));
 
 
         Instance = API.svg_create(data.Instance);
         Instance = API.svg_create(data.Instance);
-        SkiaAPI.EnsureNotNull(Instance);
         
         
         if (Instance == IntPtr.Zero)
         if (Instance == IntPtr.Zero)
             throw new Exception("Cannot decode the provided SVG image.");
             throw new Exception("Cannot decode the provided SVG image.");