From f9941ced55be6fca307fec19bad2d81bd4fb7831 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Tue, 10 Sep 2013 15:30:35 -0400 Subject: =?UTF-8?q?Transformation=20functionality=20adapted=20from=20Morit?= =?UTF-8?q?z=20Wagner=20and=20Andreas=20W=C3=BCrmser.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fpdf.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 50d1763..51dfad1 100644 --- a/fpdf.go +++ b/fpdf.go @@ -428,6 +428,8 @@ func (f *Fpdf) Close() { if f.err == nil { if f.clipNest > 0 { f.err = fmt.Errorf("Clip procedure must be explicitly ended") + } else if f.transformNest > 0 { + f.err = fmt.Errorf("Transformation procedure must be explicitly ended") } } if f.err != nil { @@ -1148,7 +1150,7 @@ func (f *Fpdf) ClipEnd() { f.clipNest-- f.out("Q") } else { - f.err = fmt.Errorf("Error attempting to end clip operation") + f.err = fmt.Errorf("Error attempting to end clip operation out of sequence") } } } -- cgit v1.2.1-24-ge1ad