flabbet 3 tahun lalu
induk
melakukan
3104bf3302
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      PixiEditor/Models/DataHolders/Document/Document.cs

+ 1 - 1
PixiEditor/Models/DataHolders/Document/Document.cs

@@ -207,7 +207,7 @@ namespace PixiEditor.Models.DataHolders
 
         private void SetAsActiveOnClick(object obj)
         {
-            if (XamlAccesibleViewModel.BitmapManager.ActiveDocument != this)
+            if (XamlAccesibleViewModel?.BitmapManager?.ActiveDocument != this)
             {
                 XamlAccesibleViewModel.BitmapManager.ActiveDocument = this;
             }