Skip to content

Commit 3c8c8c5

Browse files
committed
resolved qax-os#691, fix the scale for add picture not work
1 parent 4e4baac commit 3c8c8c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

picture.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ func (f *File) addDrawingPicture(sheet, drawingXML, cell, file string, width, he
253253
if err != nil {
254254
return err
255255
}
256+
} else {
257+
width = int(float64(width) * formatSet.XScale)
258+
height = int(float64(height) * formatSet.YScale)
256259
}
257260
col--
258261
row--

0 commit comments

Comments
 (0)