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-09 05:46:11 +05:00
parent 7078381175
commit d6eb66c738
+1 -1
View File
@@ -1217,7 +1217,7 @@ bool PDF_PLOTTER::EndPlot()
js += wxT( "var cChoice = app.popUpMenuEx.apply\\( app, aParams \\); " );
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' \\)"
" app.launchURL\\( cChoice \\);" );