From a68a99fa311121a8338ff561c6ad2f967b72f7cc Mon Sep 17 00:00:00 2001 From: Eduard Belozertsev Date: Thu, 9 Oct 2025 14:18:26 +0700 Subject: [PATCH] Revert changes of git.onlyoffice.com/ONLYOFFICE/sdkjs/pulls/1461 --- word/Drawing/Graphics.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/word/Drawing/Graphics.js b/word/Drawing/Graphics.js index bc2b46e67a..b90a8154b6 100644 --- a/word/Drawing/Graphics.js +++ b/word/Drawing/Graphics.js @@ -691,18 +691,7 @@ if (_sy >= _sb || _sy >= _h || _sb <= 0 || h <= 0) return; - if (this.isVectorImage(img)) { - const canvas = this.m_oContext.canvas; - const scale = Math.min(canvas.width / img.width, canvas.height / img.height); - this.m_oContext.drawImage( - img, - _sx * scale, _sy * scale, - (_sr - _sx) * scale, (_sb - _sy) * scale, - x, y, w, h - ); - } else { - this.m_oContext.drawImage(img, _sx, _sy, _sr - _sx, _sb - _sy, x, y, w, h); - } + this.m_oContext.drawImage(img, _sx, _sy, _sr - _sx, _sb - _sy, x, y, w, h); } else {