Skip to content

Commit

Permalink
Fixed previewImage
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Feb 20, 2022
1 parent 994d5e6 commit 54ab3c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions PixiEditor/Models/DataHolders/Document/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void CenterContent()
if (layersToCenter.Count == 0)
{
return;
}

DoubleCoords? maybePoints = ClipLayersAndGetEdgePoints(layersToCenter);
if (maybePoints == null)
Expand Down
1 change: 1 addition & 0 deletions PixiEditor/ViewModels/SubViewModels/Main/FileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public void OpenFile(string path)
Owner.BitmapManager.ActiveDocument.AddNewLayer(
"Image",
Importer.ImportImage(dialog.FilePath, dialog.FileWidth, dialog.FileHeight));
Owner.BitmapManager.ActiveDocument.UpdatePreviewImage();
}
}

Expand Down

0 comments on commit 54ab3c5

Please sign in to comment.