Fixes typo/regression of #5295 for presentation mode
Merge pull request #5359 from yurydelendik/pdfviewer2

Fixes typo/regression of #5295 for presentation mode