Browse Source

Dispose check

flabbet 11 months ago
parent
commit
d0647a7a89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Views/Rendering/Scene.cs

+ 1 - 1
src/PixiEditor/Views/Rendering/Scene.cs

@@ -138,7 +138,7 @@ internal class Scene : Zoombox.Zoombox, ICustomHitTest
 
     public override void Render(DrawingContext context)
     {
-        if (Surface == null || Document == null) return;
+        if (Surface == null || Surface.IsDisposed || Document == null) return;
 
         float angle = (float)MathUtil.RadiansToDegrees(AngleRadians);