PDF plotting: Fix "Show Page" in Foxit PDF Reader.
pageNum is an Integer. Acrobat seems to convert automatically.
This commit is contained in:
parent
36901bda62
commit
698fffb128
|
@ -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 \\);" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue