resolved #691, fix the scale for add picture not work

This commit is contained in:
xuri 2020-08-18 08:30:32 +00:00
parent 4e4baac3bc
commit 3c8c8c55c8
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ func (f *File) addDrawingPicture(sheet, drawingXML, cell, file string, width, he
if err != nil { if err != nil {
return err return err
} }
} else {
width = int(float64(width) * formatSet.XScale)
height = int(float64(height) * formatSet.YScale)
} }
col-- col--
row-- row--