From 401a005602980b783c937aaf6a0746ca32acd30d Mon Sep 17 00:00:00 2001 From: Jérôme Laurens Date: Thu, 14 Sep 2017 16:23:15 +0000 Subject: Fixed a division by 0 error in synctex_parser.c (Text editors only) git-svn-id: svn://tug.org/texlive/trunk@45300 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/synctexdir/synctex_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/source/texk/web2c/synctexdir/synctex_parser.c b/Build/source/texk/web2c/synctexdir/synctex_parser.c index 278646f3961..85fbc0df2b6 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_parser.c +++ b/Build/source/texk/web2c/synctexdir/synctex_parser.c @@ -6600,7 +6600,7 @@ SYNCTEX_INLINE static synctex_box_s _synctex_data_box_V(synctex_node_p node) { static synctex_node_p _synctex_node_box_visible(synctex_node_p node) { if ((node = _synctex_node_or_handle_target(node))) { int mean = 0; - int bound = 1500000/(node->class->scanner->pre_magnification/1000); + int bound = 1500000/(node->class->scanner->pre_magnification/1000.0); synctex_node_p parent = NULL; /* get the first enclosing parent * then get the highest enclosing parent with the same mean line ±1 */ -- cgit v1.2.3