summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
authornabeyama yoshihide <yoshihide.nabeyama@gmail.com>2019-04-04 17:26:26 +0900
committernabeyama yoshihide <yoshihide.nabeyama@gmail.com>2019-04-04 17:26:26 +0900
commitb0acd922ef9e4874eeadd905a636ebc911b1b299 (patch)
tree0d001bd56dce6bac06ea28390224608910e9f9a9 /col.go
parent28c02e3aaf585037f7d9035c21901844bdda91a2 (diff)
Fixed bug in the calculation target cell(row).
The target cell for calclator the height was shifted by 1.
Diffstat (limited to 'col.go')
-rw-r--r--col.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/col.go b/col.go
index 637f6e0..5fc7461 100644
--- a/col.go
+++ b/col.go
@@ -275,8 +275,8 @@ func (f *File) positionObjectPixels(sheet string, col, row, x1, y1, width, heigh
// Subtract the underlying cell heights to find end cell of the object.
for height >= f.getRowHeight(sheet, rowEnd) {
- rowEnd++
height -= f.getRowHeight(sheet, rowEnd)
+ rowEnd++
}
// The end vertices are whatever is left from the width and height.