summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/picture.go b/picture.go
index 92e0106..052ec83 100644
--- a/picture.go
+++ b/picture.go
@@ -618,10 +618,10 @@ 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++ {
+ for col := rng[0]; col <= rng[2]; col++ {
cellWidth += f.getColWidth(sheet, col)
}
- for row := rng[1] - 1; row < rng[3]; row++ {
+ for row := rng[1]; row <= rng[3]; row++ {
cellHeight += f.getRowHeight(sheet, row)
}
}