diff --git a/goextVersion.go b/goextVersion.go index c4898c5..4e96f74 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.498" +const GoextVersion = "0.0.499" -const GoextVersionTimestamp = "2024-08-07T17:26:35+0200" +const GoextVersionTimestamp = "2024-08-07T18:34:22+0200" diff --git a/wpdf/wpdfCell.go b/wpdf/wpdfCell.go index cf2d806..e6a8074 100644 --- a/wpdf/wpdfCell.go +++ b/wpdf/wpdfCell.go @@ -293,7 +293,7 @@ func (b *WPDFBuilder) Cell(txt string, opts ...*PDFCellOpt) { } else if ln == BreakToRight { b.Rect(b.GetX()-xBefore, *height, RectOutline, NewPDFRectOpt().X(xBefore).Y(yBefore).LineWidth(0.25).DrawColor(0, 128, 0)) } else if ln == BreakToBelow { - b.Rect(b.GetPageWidth(), *height, RectOutline, NewPDFRectOpt().X(xBefore).Y(yBefore).LineWidth(0.25).DrawColor(0, 128, 0)) + b.Rect(b.GetPageWidth()-xBefore-b.GetMarginRight(), *height, RectOutline, NewPDFRectOpt().X(xBefore).Y(yBefore).LineWidth(0.25).DrawColor(0, 128, 0)) } }