Browse Source

Resize fix

flabbet 3 years ago
parent
commit
de0e148bd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/DataHolders/Document/Document.Operations.cs

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

@@ -54,7 +54,7 @@ namespace PixiEditor.Models.DataHolders
                 ResizeCanvas(newOffsets, width, height);
             }
 
-            if (width == Width && Height == height) return;
+            if (oldWidth == Width && Height == oldHeight) return;
 
             DocumentSizeChanged?.Invoke(this, new DocumentSizeChangedEventArgs(oldWidth, oldHeight, width, height));
         }