From 5b0769f3263c4dbac1e79b66f1bb9b486e3f8d2c Mon Sep 17 00:00:00 2001
From: Julia Radzhabova <julia.radzhabova@onlyoffice.com>
Date: Fri, 24 Jun 2022 17:50:28 +0300
Subject: [PATCH] [SSE] Fix current cell when watch is added

---
 apps/spreadsheeteditor/main/app/view/WatchDialog.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/spreadsheeteditor/main/app/view/WatchDialog.js b/apps/spreadsheeteditor/main/app/view/WatchDialog.js
index 3e4645c28..6ff13dae1 100644
--- a/apps/spreadsheeteditor/main/app/view/WatchDialog.js
+++ b/apps/spreadsheeteditor/main/app/view/WatchDialog.js
@@ -176,7 +176,7 @@ define([  'text!spreadsheeteditor/main/app/template/WatchDialog.template',
                 win.show(xy.left + 65, xy.top + 77);
                 win.setSettings({
                     api     : me.api,
-                    range   : me.api.asc_getActiveRangeStr(Asc.referenceType.A),
+                    range   : me.api.asc_getWorksheetName(me.api.asc_getActiveWorksheetIndex()) + '!' + me.api.asc_getActiveRangeStr(Asc.referenceType.A),
                     type    : Asc.c_oAscSelectionDialogType.Chart
                 });
             }