diff options
| author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-08-21 12:11:07 -0400 |
|---|---|---|
| committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-08-21 12:11:07 -0400 |
| commit | 1800f941981bc8ffc3229ba79304ca76974767de (patch) | |
| tree | bfadf5bd5e5e8f315b071fe608e8afdd1f802cd1 /fpdf_test.go | |
| parent | 27b605858db6d8f5439e9b689f70626801324f02 (diff) | |
Change GetImageInfo to return pointer
Diffstat (limited to 'fpdf_test.go')
| -rw-r--r-- | fpdf_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdf_test.go b/fpdf_test.go index b556713..71aa0d2 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -1086,8 +1086,8 @@ func ExampleFpdf_RegisterImage() { // Test the image information retrieval method infoShow := func(imageStr string) { imageStr = imageFile(imageStr) - info, ok := pdf.GetImageInfo(imageStr) - if ok { + info := pdf.GetImageInfo(imageStr) + if info != nil { if info.Width() > 0.0 { fmt.Printf("Image %s is registered\n", imageStr) } else { |
