Przeglądaj źródła

Fix: do not check nullptr for SkText (nullptr is expected for empty texts)

Marcin Ziąbek 1 rok temu
rodzic
commit
04661ff57a
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      Source/QuestPDF/Skia/SkText.cs

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

@@ -11,7 +11,6 @@ internal class SkText : IDisposable
     public SkText(string? text)
     public SkText(string? text)
     {
     {
         Instance = MarshalFromManagedToNative(text);
         Instance = MarshalFromManagedToNative(text);
-        SkiaAPI.EnsureNotNull(Instance);
     }
     }
 
 
     ~SkText()
     ~SkText()