From 12b95ad4b36a4e525a5fd1f2c8eee87c8b437078 Mon Sep 17 00:00:00 2001 From: GoshaZotov Date: Sun, 2 Feb 2025 15:33:23 +0300 Subject: [PATCH] [se] Fix bug 71436 --- cell/view/WorksheetView.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cell/view/WorksheetView.js b/cell/view/WorksheetView.js index d1f18967a8..13e17f1c16 100644 --- a/cell/view/WorksheetView.js +++ b/cell/view/WorksheetView.js @@ -6249,22 +6249,27 @@ if (ct.angle) { - xb1 = this._getColLeft(col, true, ctx) - offsetX; + xb1 = this._getColLeft(col, false, ctx) - offsetX; yb1 = this._getRowTop(row) - offsetY; wb = this._getColumnWidth(col); hb = this._getRowHeight(row); + xb1 = this.checkRtl(xb1); + if (!isMerged && this.getRightToLeft()) { + xb1 -= wb; + } + txtRotX = xb1 - ct.textBound.offsetX; txtRotW = ct.textBound.width + xb1 - ct.textBound.offsetX; if (isMerged) { - wb = this._getColLeft(colR + 1, true, ctx) - this._getColLeft(colL, true, ctx); + wb = this._getColLeft(colR + 1, false, ctx) - this._getColLeft(colL, false, ctx); if (this.getRightToLeft()) { - xb1 += this._getColumnWidth(col) - wb; + xb1 -= wb; } hb = this._getRowTop(rowB + 1) - this._getRowTop(rowT); - this._AddClipRect(ctx, xb1, yb1, wb, hb); + this._AddClipRect(ctx, xb1, yb1, wb, hb, true); clipUse = true; }