summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-10-10 15:24:43 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-10-10 15:24:43 -0400
commit92858a8b5ff04e4196597d9d517f3b2a0d651579 (patch)
tree4697ba0ba2019cd48d29ad462da280bd18aa6e36 /template.go
parent5847afd8a205853a7effbf749b7a388ae325eb24 (diff)
Conditionally sort image catalog. Correct small typos.
Diffstat (limited to 'template.go')
-rw-r--r--template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/template.go b/template.go
index 7561ae1..342032e 100644
--- a/template.go
+++ b/template.go
@@ -36,7 +36,7 @@ func CreateTemplate(corner PointType, size SizeType, unitStr, fontDirStr string,
// using the size and position at which it was originally written.
func (f *Fpdf) UseTemplate(t Template) {
if t == nil {
- f.SetErrorf("Template is nil")
+ f.SetErrorf("template is nil")
return
}
corner, size := t.Size()
@@ -47,13 +47,13 @@ func (f *Fpdf) UseTemplate(t Template) {
// using the given page coordinates.
func (f *Fpdf) UseTemplateScaled(t Template, corner PointType, size SizeType) {
if t == nil {
- f.SetErrorf("Template is nil")
+ f.SetErrorf("template is nil")
return
}
// You have to add at least a page first
if f.page <= 0 {
- f.SetErrorf("Cannot use a template without first adding a page")
+ f.SetErrorf("cannot use a template without first adding a page")
return
}