Merge pull request #16717 from Snuffleupagus/saveDocument-resetNewTemporaryRef
Don't reset temporary XRef-entries during saving (PR 16392 follow-up)
This commit is contained in:
		
						commit
						7220b93911
					
				@ -661,23 +661,21 @@ class WorkerMessageHandler {
 | 
			
		||||
            };
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          try {
 | 
			
		||||
            return incrementalUpdate({
 | 
			
		||||
              originalData: stream.bytes,
 | 
			
		||||
              xrefInfo: newXrefInfo,
 | 
			
		||||
              newRefs,
 | 
			
		||||
              xref,
 | 
			
		||||
              hasXfa: !!xfa,
 | 
			
		||||
              xfaDatasetsRef,
 | 
			
		||||
              hasXfaDatasetsEntry,
 | 
			
		||||
              needAppearances,
 | 
			
		||||
              acroFormRef,
 | 
			
		||||
              acroForm,
 | 
			
		||||
              xfaData,
 | 
			
		||||
            });
 | 
			
		||||
          } finally {
 | 
			
		||||
          return incrementalUpdate({
 | 
			
		||||
            originalData: stream.bytes,
 | 
			
		||||
            xrefInfo: newXrefInfo,
 | 
			
		||||
            newRefs,
 | 
			
		||||
            xref,
 | 
			
		||||
            hasXfa: !!xfa,
 | 
			
		||||
            xfaDatasetsRef,
 | 
			
		||||
            hasXfaDatasetsEntry,
 | 
			
		||||
            needAppearances,
 | 
			
		||||
            acroFormRef,
 | 
			
		||||
            acroForm,
 | 
			
		||||
            xfaData,
 | 
			
		||||
          }).finally(() => {
 | 
			
		||||
            xref.resetNewTemporaryRef();
 | 
			
		||||
          }
 | 
			
		||||
          });
 | 
			
		||||
        });
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user