summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-05-21 22:57:58 +0800
committerxuri <xuri.me@gmail.com>2020-05-21 22:57:58 +0800
commit2efc7107ff30dc7f1e1a798082616ee488f99489 (patch)
tree80ea9e1e9f9246369685acabd0e5dac8271e7d97 /picture.go
parent98221a332ff9c37c9b20c44e9efdbe4c22a5cf5c (diff)
- transform the range to the matrix on the first arg of the formula
- typo fix - reset cell with and height when insert picture into merged cell with autofit
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/picture.go b/picture.go
index 71c3b8e..cac1af2 100644
--- a/picture.go
+++ b/picture.go
@@ -607,6 +607,7 @@ func (f *File) drawingResize(sheet string, cell string, width, height float64, f
}
}
if inMergeCell {
+ cellWidth, cellHeight = 0, 0
c, r = rng[0], rng[1]
for col := rng[0] - 1; col < rng[2]; col++ {
cellWidth += f.getColWidth(sheet, col)