From 151eef66b73fafee9d34c9b7624a21a414946c45 Mon Sep 17 00:00:00 2001 From: csh Date: Tue, 30 Jul 2024 14:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E5=90=88=E5=B9=B6=EF=BC=8C=E8=BE=B9=E6=A1=86=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- range/Advanced/TSPdfTableRange.tsf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/range/Advanced/TSPdfTableRange.tsf b/range/Advanced/TSPdfTableRange.tsf index 2b3d405..58be50e 100644 --- a/range/Advanced/TSPdfTableRange.tsf +++ b/range/Advanced/TSPdfTableRange.tsf @@ -76,6 +76,11 @@ begin cell_range.StartY := tc_y; cell_range.Width := grid_cols[i].W; cell_range.FixedHeight := tc_h; + if i = length(tcs)-1 and i <> length(grid_cols)-1 then + begin + for j:=i+1 to length(grid_cols)-1 do + cell_range.Width += grid_cols[j].W; + end cell_range.Calc(); tc_x += grid_cols[i].W; if cell_range.DynamicHeight > max_height then max_height := cell_range.DynamicHeight;