summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-07-03 07:41:40 -0400
committerKurt <kurt.w.jung@gmail.com>2019-07-03 07:41:40 -0400
commit3aaf0b1a66c0ab02d925917376898a5856061d59 (patch)
tree0c3f3ae322e9faee2b93629f6403c5a43ca354ff
parentf92bdc0bcf650f019ee76c1298a4d04c8237cba0 (diff)
Do not execute Multicell if instance is in error state
-rw-r--r--fpdf.go3
1 files changed, 3 insertions, 0 deletions
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"