fix automatic adjustment of viewport in VisualisePDFHistory()