From ea251e41ca946b6843d7724d0c4a9121f606acaa Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 17 Oct 2019 15:45:28 +0300 Subject: [PATCH] [SSE] Fix Bug 43232 --- apps/spreadsheeteditor/main/app/controller/Statusbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index 64bc4b9a5..794fc91da 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -290,7 +290,8 @@ define([ } var index = 0, name; - while(++index < 1000) { + while(true) { + index++; name = this.strSheet + index; if (items.indexOf(name.toLowerCase()) < 0) break; } @@ -319,7 +320,8 @@ define([ var first = re ? re[1] : orig + ' '; var index = 1, name; - while(++index < 1000) { + while(true) { + index++; name = first + '(' + index + ')'; if (names.indexOf(name.toLowerCase()) < 0) break; }