Commit ae9e2559 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34461

parent 679185a2
...@@ -810,13 +810,13 @@ CPresentation.prototype = ...@@ -810,13 +810,13 @@ CPresentation.prototype =
return; return;
if(this.Slides[this.CurPage]){ if(this.Slides[this.CurPage]){
if(this.Slides[this.CurPage].graphicObjects.checkTrackDrawings()){ if(this.Slides[this.CurPage].graphicObjects.checkTrackDrawings() || this.Api.isOpenedChartFrame){
return; return;
} }
} }
var bHaveChanges = History.Have_Changes(true); var bHaveChanges = History.Have_Changes(true);
if (true !== bHaveChanges && true === AscCommon.CollaborativeEditing.Have_OtherChanges()) if (true !== bHaveChanges && true === AscCommon.CollaborativeEditing.Have_OtherChanges() || 0 !== AscCommon.CollaborativeEditing.getOwnLocksLength())
{ {
// Принимаем чужие изменение. Своих нет, но функцию отсылки надо вызвать, чтобы снялить локи. // Принимаем чужие изменение. Своих нет, но функцию отсылки надо вызвать, чтобы снялить локи.
AscCommon.CollaborativeEditing.Apply_Changes(); AscCommon.CollaborativeEditing.Apply_Changes();
......
...@@ -1138,6 +1138,7 @@ Slide.prototype = ...@@ -1138,6 +1138,7 @@ Slide.prototype =
showChartSettings: function() showChartSettings: function()
{ {
editor.asc_onOpenChartFrame();
editor.sendEvent("asc_doubleClickOnChart", this.graphicObjects.getChartObject()); editor.sendEvent("asc_doubleClickOnChart", this.graphicObjects.getChartObject());
this.graphicObjects.changeCurrentState(new AscFormat.NullState(this.graphicObjects)); this.graphicObjects.changeCurrentState(new AscFormat.NullState(this.graphicObjects));
}, },
......
...@@ -5862,6 +5862,11 @@ background-repeat: no-repeat;\ ...@@ -5862,6 +5862,11 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.asc_getChartObject = function(type) asc_docs_api.prototype.asc_getChartObject = function(type)
{ {
this.isChartEditor = true; // Для совместного редактирования this.isChartEditor = true; // Для совместного редактирования
if (!AscFormat.isRealNumber(type))
{
this.asc_onOpenChartFrame();
this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props);
}
return this.WordControl.m_oLogicDocument.Get_ChartObject(type); return this.WordControl.m_oLogicDocument.Get_ChartObject(type);
}; };
......
...@@ -10043,11 +10043,11 @@ CDocument.prototype.Continue_FastCollaborativeEditing = function() ...@@ -10043,11 +10043,11 @@ CDocument.prototype.Continue_FastCollaborativeEditing = function()
if (true !== this.CollaborativeEditing.Is_Fast() || true === this.CollaborativeEditing.Is_SingleUser()) if (true !== this.CollaborativeEditing.Is_Fast() || true === this.CollaborativeEditing.Is_SingleUser())
return; return;
if (true === this.Selection_Is_TableBorderMove() || true === this.Api.isStartAddShape || this.DrawingObjects.checkTrackDrawings()) if (true === this.Selection_Is_TableBorderMove() || true === this.Api.isStartAddShape || this.DrawingObjects.checkTrackDrawings() || this.Api.isOpenedChartFrame)
return; return;
var HaveChanges = this.History.Have_Changes(true); var HaveChanges = this.History.Have_Changes(true);
if (true !== HaveChanges && true === this.CollaborativeEditing.Have_OtherChanges()) if (true !== HaveChanges && true === this.CollaborativeEditing.Have_OtherChanges() || 0 !== this.CollaborativeEditing.getOwnLocksLength())
{ {
// Принимаем чужие изменения. Своих нет, но функцию отсылки надо вызвать, чтобы снять локи. // Принимаем чужие изменения. Своих нет, но функцию отсылки надо вызвать, чтобы снять локи.
this.CollaborativeEditing.Apply_Changes(); this.CollaborativeEditing.Apply_Changes();
......
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