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

pageNum is an Integer. Acrobat seems to convert automatically.
This commit is contained in:
Alex Shvartzkop 2023-07-03 09:13:31 +03:00
parent 36901bda62
commit 698fffb128
1 changed files with 1 additions and 1 deletions

View File

@ -1223,7 +1223,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 \\);" );