Fixed bug in the calculation target cell(row).

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

2
col.go
View File

@ -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. // Subtract the underlying cell heights to find end cell of the object.
for height >= f.getRowHeight(sheet, rowEnd) { for height >= f.getRowHeight(sheet, rowEnd) {
rowEnd++
height -= f.getRowHeight(sheet, rowEnd) height -= f.getRowHeight(sheet, rowEnd)
rowEnd++
} }
// The end vertices are whatever is left from the width and height. // The end vertices are whatever is left from the width and height.