From b0acd922ef9e4874eeadd905a636ebc911b1b299 Mon Sep 17 00:00:00 2001 From: nabeyama yoshihide Date: Thu, 4 Apr 2019 17:26:26 +0900 Subject: [PATCH] Fixed bug in the calculation target cell(row). The target cell for calclator the height was shifted by 1. --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.