summaryrefslogtreecommitdiff
path: root/template_impl.go
diff options
context:
space:
mode:
authorJoe Westcott <joewestcott@users.noreply.github.com>2019-09-04 15:33:02 +0100
committerJoe Westcott <joewestcott@users.noreply.github.com>2019-09-04 15:33:02 +0100
commitf9ddde9937c7b2c043599459877e5a695d667f0e (patch)
tree04a5d0e5eb4038718351e812c3dd07e8f9070853 /template_impl.go
parentf8eb4ab245f4dfe947b595efb0b2e2c3b3a37625 (diff)
Initialize derived template with parent images
Diffstat (limited to 'template_impl.go')
-rw-r--r--template_impl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/template_impl.go b/template_impl.go
index c5d7be8..c1e2dff 100644
--- a/template_impl.go
+++ b/template_impl.go
@@ -296,4 +296,8 @@ func (t *Tpl) loadParamsFromFpdf(f *Fpdf) {
t.Fpdf.fontSizePt = f.fontSizePt
t.Fpdf.fontStyle = f.fontStyle
t.Fpdf.ws = f.ws
+
+ for key, value := range f.images {
+ t.Fpdf.images[key] = value
+ }
}