Skip to content

Commit

Permalink
correctly invoke pdf viewer even when concordance isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jan 17, 2013
1 parent ff7f7d7 commit 253badf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ public void onCompilePdfCompleted(CompilePdfCompletedEvent event)
// (internal previews are handled by the compile pdf window directly)
if (event.getResult().getSucceeded() && handleDesktopSynctex())
{
int page = 1;
if (event.getResult().isSynctexAvailable())
page = event.getResult().getPdfLocation().getPage();
Desktop.getFrame().externalSynctexPreview(
event.getResult().getPdfPath(),
event.getResult().getPdfLocation().getPage());
page);
}
}

Expand Down

0 comments on commit 253badf

Please sign in to comment.