summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-08-18 08:30:32 +0000
committerxuri <xuri.me@gmail.com>2020-08-18 08:30:32 +0000
commit3c8c8c55c8128c5bb94fe28451f58fbc5fb4a118 (patch)
treef9983eedb6e5914b8b443f0ba83c02e7c9c9fad4 /picture.go
parent4e4baac3bc1cd11026a35fb59b6a0d7903a44070 (diff)
resolved #691, fix the scale for add picture not work
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go3
1 files changed, 3 insertions, 0 deletions
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--