From 5b56120188798973cd86dd52b8a28644c694df2a Mon Sep 17 00:00:00 2001
From: Julia Radzhabova <Julia.Radzhabova@onlyoffice.com>
Date: Wed, 25 May 2016 17:09:55 +0300
Subject: [PATCH] =?UTF-8?q?[SSE]=20=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD?=
 =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=20=D0=B1=D0=B0=D0=B3=D1=83=20?=
 =?UTF-8?q?32505=20(=D0=BD=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=B0?=
 =?UTF-8?q?=D1=82=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D1=81=D0=BE=D0=B1=D1=8B?=
 =?UTF-8?q?=D1=82=D0=B8=D0=B5=20asc=5FonSelectionChanged,=20=D0=B5=D1=81?=
 =?UTF-8?q?=D0=BB=D0=B8=20=D0=BD=D0=B0=D1=85=D0=BE=D0=B4=D0=B8=D0=BC=D1=81?=
 =?UTF-8?q?=D1=8F=20=D0=B2=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5=20=D0=B2?=
 =?UTF-8?q?=D1=8B=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=B8?=
 =?UTF-8?q?=D0=B0=D0=BF=D0=B0=D0=B7=D0=BE=D0=BD=D0=B0=20=D1=8F=D1=87=D0=B5?=
 =?UTF-8?q?=D0=B5=D0=BA)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 apps/spreadsheeteditor/main/app/controller/RightMenu.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/apps/spreadsheeteditor/main/app/controller/RightMenu.js b/apps/spreadsheeteditor/main/app/controller/RightMenu.js
index 8096a8a69..dc61d8f92 100644
--- a/apps/spreadsheeteditor/main/app/controller/RightMenu.js
+++ b/apps/spreadsheeteditor/main/app/controller/RightMenu.js
@@ -85,6 +85,7 @@ define([
             this.api = api;
             this.api.asc_registerCallback('asc_onCoAuthoringDisconnect',_.bind(this.onCoAuthoringDisconnect, this));
             Common.NotificationCenter.on('api:disconnect',              _.bind(this.onCoAuthoringDisconnect, this));
+            Common.NotificationCenter.on('cells:range',                 _.bind(this.onCellsRange, this));
         },
 
         setMode: function(mode) {
@@ -103,6 +104,8 @@ define([
         },
 
         onSelectionChanged: function(info) {
+            if (this.rangeSelectionMode) return;
+            
             var SelectedObjects = [],
                 selectType = info.asc_getFlags().asc_getSelectionType(),
                 formatTableInfo = info.asc_getFormatTableInfo();
@@ -318,6 +321,10 @@ define([
                     this.onSelectionChanged(this.api.asc_getCellInfo());
                 }
             }
+        },
+
+        onCellsRange: function(status) {
+            this.rangeSelectionMode = (status != Asc.c_oAscSelectionDialogType.None);
         }
     });
 });
\ No newline at end of file