Browse Source

Fixed empty quick export config

flabbet 8 months ago
parent
commit
1cbabf1be8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/PixiEditor/ViewModels/SubViewModels/FileViewModel.cs

+ 2 - 1
src/PixiEditor/ViewModels/SubViewModels/FileViewModel.cs

@@ -380,7 +380,8 @@ internal class FileViewModel : SubViewModel<ViewModelMain>
         }
         else
         {
-            var result = await Exporter.TrySaveAsync(document, document.FullFilePath, ExportConfig.Empty, null);
+            ExportConfig config = new ExportConfig() { ExportSize = document.SizeBindable };
+            var result = await Exporter.TrySaveAsync(document, document.FullFilePath, config, null);
             if (result != SaveResult.Success)
             {
                 ShowSaveError((DialogSaveResult)result);