From 3aaf0b1a66c0ab02d925917376898a5856061d59 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 3 Jul 2019 07:41:40 -0400 Subject: Do not execute Multicell if instance is in error state --- fpdf.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 0b2aa25..35496c2 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2476,6 +2476,9 @@ func (f *Fpdf) SplitLines(txt []byte, w float64) [][]byte { // // h indicates the line height of each cell in the unit of measure specified in New(). func (f *Fpdf) MultiCell(w, h float64, txtStr, borderStr, alignStr string, fill bool) { + if f.err != nil { + return + } // dbg("MultiCell") if alignStr == "" { alignStr = "J" -- cgit v1.2.1-24-ge1ad