From 28c02e3aaf585037f7d9035c21901844bdda91a2 Mon Sep 17 00:00:00 2001 From: nabeyama yoshihide Date: Thu, 4 Apr 2019 17:04:10 +0900 Subject: [PATCH] Fixed bug in column cell to check. The target cell for calclator the width was shifted by 1. --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/col.go b/col.go index e3e057c..637f6e0 100644 --- a/col.go +++ b/col.go @@ -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) }