mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 20:24:25 -06:00
[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:
parent
b9af094f8b
commit
9b52fa685f
@ -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)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user