소스 검색

Dispose check

flabbet 1 년 전
부모
커밋
d0647a7a89
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);