Explorar el Código

Fixed bug in the calculation target cell(row).
The target cell for calclator the height was shifted by 1.

nabeyama yoshihide hace 6 años
padre
commit
b0acd922ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      col.go

+ 1 - 1
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.