Prechádzať zdrojové kódy

FIxed paintable not cloning

Krzysztof Krysiński 5 mesiacov pred
rodič
commit
386e1d96cf

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit 676738f1cb90e799f574851ad93171e18e434434
+Subproject commit 551f1fcb19788e0e2e2dd6531adf65f18f157080

+ 1 - 1
src/PixiEditor/ViewModels/Document/DocumentViewModel.Serialization.cs

@@ -584,7 +584,7 @@ internal partial class DocumentViewModel
 
         DrawingSurface surface = null;
 
-        if (bounds != null && bounds.Value.Width > 0 && bounds.Value.Height > 0)
+        if (bounds is { Width: > 0, Height: > 0 })
         {
             surface = DrawingBackendApi.Current.SurfaceImplementation.Create(
                 new ImageInfo(bounds.Value.Width, bounds.Value.Height));