Browse Source

Fixed potentially sending the same stack exception for another document in OpenFromReport

CPKreuz 4 months ago
parent
commit
4a15902f57
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/PixiEditor/ViewModels/SubViewModels/FileViewModel.cs

+ 4 - 4
src/PixiEditor/ViewModels/SubViewModels/FileViewModel.cs

@@ -405,12 +405,12 @@ internal class FileViewModel : SubViewModel<ViewModelMain>
 
 
         var i = 0;
         var i = 0;
 
 
-        Exception firstException = null;
-        Exception secondException = null;
-        Exception thirdException = null;
-
         foreach (var document in documents)
         foreach (var document in documents)
         {
         {
+            Exception firstException = null;
+            Exception secondException = null;
+            Exception thirdException = null;
+
             try
             try
             {
             {
                 OpenRecoveredDotPixi(document.OriginalPath, document.AutosavePath,
                 OpenRecoveredDotPixi(document.OriginalPath, document.AutosavePath,