Преглед изворни кода

Fixed bug in column cell to check.
The target cell for calclator the width was shifted by 1.

nabeyama yoshihide пре 6 година
родитељ
комит
28c02e3aaf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      col.go

+ 1 - 1
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)
 	}