Remove a redundant PDFViewer.currentScale call from PDFViewerApplication.load
				
					
				
			Since this call occurs *before* the `PDFViewer.setDocument` call, it won't actually cause any scale change. Furthermore, moving it should not be necessary, since the `scale` is already used as the fallback case in `PDFViewerApplication.setInitialView` (provided it's non-zero, which isn't even the case in the default viewer). Hence this patch should cause no functional changes at all, since it simply removes a piece of unnecessary code.
This commit is contained in:
		
							parent
							
								
									8e9b4b5ff2
								
							
						
					
					
						commit
						4aab3cef4a
					
				@ -907,7 +907,6 @@ var PDFViewerApplication = {
 | 
			
		||||
    this.pdfDocumentProperties.setDocument(pdfDocument, this.url);
 | 
			
		||||
 | 
			
		||||
    let pdfViewer = this.pdfViewer;
 | 
			
		||||
    pdfViewer.currentScale = scale;
 | 
			
		||||
    pdfViewer.setDocument(pdfDocument);
 | 
			
		||||
    let firstPagePromise = pdfViewer.firstPagePromise;
 | 
			
		||||
    let pagesPromise = pdfViewer.pagesPromise;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user