From 3c8c8c55c8128c5bb94fe28451f58fbc5fb4a118 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 18 Aug 2020 08:30:32 +0000 Subject: [PATCH] resolved #691, fix the scale for add picture not work --- picture.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/picture.go b/picture.go index 468cccd..9a64637 100644 --- a/picture.go +++ b/picture.go @@ -253,6 +253,9 @@ func (f *File) addDrawingPicture(sheet, drawingXML, cell, file string, width, he if err != nil { return err } + } else { + width = int(float64(width) * formatSet.XScale) + height = int(float64(height) * formatSet.YScale) } col-- row--