[html-acct-table] ensure an integer number of empty-cells

tbl-width is not necessarily an even number; tbl-width being odd would
result in a half-fraction when calculating number of
empty-cells. convert to the appropriate integer.

this is the proper fix for the bug fixed by d865b149.
This commit is contained in:
Christopher Lam 2019-09-05 19:31:15 +08:00
parent b9af094f8b
commit 9b52fa685f

View File

@ -1084,7 +1084,7 @@
1 1 (gnc:make-html-text (gnc:html-make-nbsps lbl-depth)) label))
)
(gnc:html-make-empty-cells ;; padding after label
(+ (- amt-depth (/ tbl-width 2))
(+ (- amt-depth (floor (/ tbl-width 2)))
(if total-rule? -1 0)
)
)