Commit d929df8f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

правка бага 21371 - [Copy&Paste] Ошибка в консоли при нажатии ctrl+x в презентации без слайдов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50773 954022d7-b5bf-4e40-9824-e11837661b57
parent bca2c398
...@@ -5914,7 +5914,7 @@ CPresentation.prototype = ...@@ -5914,7 +5914,7 @@ CPresentation.prototype =
deleteSlides: function(array) deleteSlides: function(array)
{ {
if(this.Document_Is_SelectionLocked(changestype_RemoveSlide, null) === false) if(array.length > 0 && this.Document_Is_SelectionLocked(changestype_RemoveSlide, null) === false)
{ {
History.Create_NewPoint(); History.Create_NewPoint();
var oldLen = this.Slides.length; var oldLen = this.Slides.length;
...@@ -6261,6 +6261,8 @@ CPresentation.prototype = ...@@ -6261,6 +6261,8 @@ CPresentation.prototype =
{ {
if ( true === CollaborativeEditing.Get_GlobalLock() ) if ( true === CollaborativeEditing.Get_GlobalLock() )
return true; return true;
if(this.Slides.length === 0)
return false;
var cur_slide = this.Slides[this.CurPage]; var cur_slide = this.Slides[this.CurPage];
var slide_id = cur_slide.deleteLock.Get_Id(); var slide_id = cur_slide.deleteLock.Get_Id();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment