Fixed bug in column cell to check.

The target cell for calclator the width was shifted by 1.
This commit is contained in:
nabeyama yoshihide 2019-04-04 17:04:10 +09:00
parent eca66180f1
commit 28c02e3aaf
1 changed files with 1 additions and 1 deletions

2
col.go
View File

@ -268,7 +268,7 @@ func (f *File) positionObjectPixels(sheet string, col, row, x1, y1, width, heigh
height += y1
// Subtract the underlying cell widths to find end cell of the object.
for width >= f.getColWidth(sheet, colEnd) {
for width >= f.getColWidth(sheet, colEnd + 1) {
colEnd++
width -= f.getColWidth(sheet, colEnd)
}