PDF plotting: Fix "Show Page" in Foxit PDF Reader.

pageNum is an Integer. Acrobat seems to convert automatically.

(cherry picked from commit 698fffb128)
This commit is contained in:
Alex Shvartzkop 2023-07-03 09:13:31 +03:00
parent 7078381175
commit d6eb66c738
1 changed files with 1 additions and 1 deletions

View File

@ -1217,7 +1217,7 @@ bool PDF_PLOTTER::EndPlot()
js += wxT( "var cChoice = app.popUpMenuEx.apply\\( app, aParams \\); " ); js += wxT( "var cChoice = app.popUpMenuEx.apply\\( app, aParams \\); " );
js += wxT( "if\\( cChoice != null && cChoice.substring\\( 0, 1 \\) == '#' \\)" js += wxT( "if\\( cChoice != null && cChoice.substring\\( 0, 1 \\) == '#' \\)"
" this.pageNum = cChoice.slice\\( 1 \\); " ); " this.pageNum = parseInt\\( cChoice.slice\\( 1 \\) \\); " );
js += wxT( "else if\\( cChoice != null && cChoice.substring\\( 0, 4 \\) == 'http' \\)" js += wxT( "else if\\( cChoice != null && cChoice.substring\\( 0, 4 \\) == 'http' \\)"
" app.launchURL\\( cChoice \\);" ); " app.launchURL\\( cChoice \\);" );