summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-10-11 21:06:01 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-10-11 21:06:01 -0400
commitd51e132c6432f2c1bbff5d9516f77375bb5252e6 (patch)
treedb0dff5f018b3ddc6fb122f09940fcd4a23a52f6 /fpdf_test.go
parent13a5fda5f79f2c15eea512e6ec3de2ce60aa29ca (diff)
Conditionally order another map iteration. Fix 'go vet' problem with unkeyed field in composite literal.
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index a0eaec1..7b56fab 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -1734,8 +1734,8 @@ func ExampleFpdf_CreateTemplate() {
pdf.AddPage()
pdf.UseTemplate(template)
- pdf.UseTemplateScaled(template, gofpdf.PointType{0, 30}, tplSize)
- pdf.UseTemplateScaled(template, gofpdf.PointType{0, 60}, tplSize.ScaleBy(1.4))
+ pdf.UseTemplateScaled(template, gofpdf.PointType{X: 0, Y: 30}, tplSize)
+ pdf.UseTemplateScaled(template, gofpdf.PointType{X: 0, Y: 60}, tplSize.ScaleBy(1.4))
pdf.Line(40, 210, 60, 210)
pdf.Text(40, 200, "Template example page 1")