diff options
author | Kurt <kurt.w.jung@gmail.com> | 2019-07-03 07:41:40 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2019-07-03 07:41:40 -0400 |
commit | 3aaf0b1a66c0ab02d925917376898a5856061d59 (patch) | |
tree | 0c3f3ae322e9faee2b93629f6403c5a43ca354ff | |
parent | f92bdc0bcf650f019ee76c1298a4d04c8237cba0 (diff) |
Do not execute Multicell if instance is in error state
-rw-r--r-- | fpdf.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |