mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-26 22:20:24 +08:00
make lint happy
This commit is contained in:
@@ -116,7 +116,7 @@ func (p *Paragraph) AddAnchorDrawing(pic []byte) (*Run, error) {
|
||||
}
|
||||
idn := int(atomic.AddUintptr(&p.file.imageID, 1))
|
||||
id := strconv.Itoa(idn)
|
||||
rId := p.file.addImage(Media{Name: "image" + id + "." + format, Data: pic})
|
||||
rid := p.file.addImage(Media{Name: "image" + id + "." + format, Data: pic})
|
||||
w, h := int64(sz.Width), int64(sz.Height)
|
||||
if float64(w)/float64(h) > 1.2 {
|
||||
h = A4_EMU_MAX_WIDTH * h / w
|
||||
@@ -167,7 +167,7 @@ func (p *Paragraph) AddAnchorDrawing(pic []byte) (*Run, error) {
|
||||
},
|
||||
BlipFill: &PICBlipFill{
|
||||
Blip: ABlip{
|
||||
Embed: rId,
|
||||
Embed: rid,
|
||||
Cstate: "print",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user