Explorar el Código

Fixed previewImage

flabbet hace 3 años
padre
commit
54ab3c5cf2

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

@@ -160,6 +160,7 @@ namespace PixiEditor.Models.DataHolders
             if (layersToCenter.Count == 0)
             {
                 return;
+            }
 
             DoubleCoords? maybePoints = ClipLayersAndGetEdgePoints(layersToCenter);
             if (maybePoints == null)

+ 1 - 0
PixiEditor/ViewModels/SubViewModels/Main/FileViewModel.cs

@@ -148,6 +148,7 @@ namespace PixiEditor.ViewModels.SubViewModels.Main
                 Owner.BitmapManager.ActiveDocument.AddNewLayer(
                     "Image",
                     Importer.ImportImage(dialog.FilePath, dialog.FileWidth, dialog.FileHeight));
+                Owner.BitmapManager.ActiveDocument.UpdatePreviewImage();
             }
         }