summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}
}