summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-11-07 21:15:19 -0500
committerKurt Jung <kurt.w.jung@code.google.com>2013-11-07 21:15:19 -0500
commit18a535033a6b0b584b7fb1bb6a21a7c980207aa4 (patch)
tree6b2681c9a12b6eea39c4af8da56397aad41a0cc9
parentc99f8c8fbf0124fcd2f509132edad09349aa3710 (diff)
Removed unnecessary code from image cataloging loop.
-rw-r--r--fpdf.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/fpdf.go b/fpdf.go
index c5100ee..e8fbc38 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2651,11 +2651,8 @@ func (f *Fpdf) putfonts() {
}
func (f *Fpdf) putimages() {
- for fileStr, img := range f.images {
+ for _, img := range f.images {
f.putimage(img)
- img.data = img.data[0:0]
- img.smask = img.smask[0:0]
- f.images[fileStr] = img
}
}