summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/synctexdir/synctex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/synctex.c')
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex.c b/Build/source/texk/web2c/synctexdir/synctex.c
index 0c48281a823..52d0cad2365 100644
--- a/Build/source/texk/web2c/synctexdir/synctex.c
+++ b/Build/source/texk/web2c/synctexdir/synctex.c
@@ -1047,17 +1047,17 @@ void synctexsheet(integer mag)
}
return;
}
+ if (SYNCTEX_GET_TOTAL_PAGES() == 0) {
+ /* Now it is time to properly set up the scale factor. */
+ if (mag > 0) {
+ synctex_ctxt.magnification = mag;
+ }
+ }
if (NULL != synctex_prepare_content()) {
/* First possibility: the .synctex file is already open because SyncTeX was activated on the CLI
* or it was activated with the \synctex macro and the first page is already shipped out.
* Second possibility: tries to open the .synctex, useful if synchronization was enabled
* from the source file and not from the CLI. */
- if (SYNCTEX_GET_TOTAL_PAGES() == 0) {
- /* Now it is time to properly set up the scale factor. */
- if (mag > 0) {
- synctex_ctxt.magnification = mag;
- }
- }
synctex_record_sheet(SYNCTEX_GET_TOTAL_PAGES()+1);
}
# if SYNCTEX_DEBUG