summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwl <wl>2013-01-13 10:16:01 +0000
committerwl <wl>2013-01-13 10:16:01 +0000
commit1f6e13b55959453afa4b7848a1099346d93870e8 (patch)
tree478e98192cd2092597096b4c8c8d737fccdf4e11
parent4afaeb84f39261ce7d9211c15ed4e89f1bf95176 (diff)
downloadgroff-1f6e13b55959453afa4b7848a1099346d93870e8.tar.gz
Oops, missed a line.
-rw-r--r--ChangeLog4
-rw-r--r--src/preproc/eqn/pile.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ff6916f2..691c2164 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,8 +4,8 @@
Problem reported by Andy Spencer <andy753421@gmail.com>.
- * src/preproc/eqn/pile.cpp (pile_box::compute_metrics): Fix
- rounding.
+ * src/preproc/eqn/pile.cpp (pile_box::compute_metrics,
+ matrix_box::compute_metrics): Fix rounding.
2013-01-07 Deri James <deri@chuzzlewit.myzen.co.uk>
diff --git a/src/preproc/eqn/pile.cpp b/src/preproc/eqn/pile.cpp
index a511ce7e..79982d07 100644
--- a/src/preproc/eqn/pile.cpp
+++ b/src/preproc/eqn/pile.cpp
@@ -167,7 +167,7 @@ int matrix_box::compute_metrics(int style)
printf(">?(\\n[" DEPTH_FORMAT "]+\\n[" HEIGHT_FORMAT "]+%dM)",
p[i]->p[j-1]->uid, p[i]->p[j]->uid, default_rule_thickness*5);
// round it so that it's a multiple of the vertical resolution
- printf("/\\n(.V+(\\n(.V/2)*\\n(.V\n");
+ printf("+(\\n(.V/2)/\\n(.V*\\n(.V\n");
printf(".nr " SUP_RAISE_FORMAT " \\n[" BASELINE_SEP_FORMAT "]*%d/2"
"+%dM\n",
uid, uid, max_len-1, axis_height - shift_down);