summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--col.go2
1 files changed, 1 insertions, 1 deletions
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)
}