Commit ae9e2559 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34461

parent 679185a2
......@@ -810,13 +810,13 @@ CPresentation.prototype =
return;
if(this.Slides[this.CurPage]){
if(this.Slides[this.CurPage].graphicObjects.checkTrackDrawings()){
if(this.Slides[this.CurPage].graphicObjects.checkTrackDrawings() || this.Api.isOpenedChartFrame){
return;
}
}
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();
......
......@@ -1138,6 +1138,7 @@ Slide.prototype =
showChartSettings: function()
{
editor.asc_onOpenChartFrame();
editor.sendEvent("asc_doubleClickOnChart", this.graphicObjects.getChartObject());
this.graphicObjects.changeCurrentState(new AscFormat.NullState(this.graphicObjects));
},
......
......@@ -5862,6 +5862,11 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.asc_getChartObject = function(type)
{
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);
};
......
......@@ -10043,11 +10043,11 @@ CDocument.prototype.Continue_FastCollaborativeEditing = function()
if (true !== this.CollaborativeEditing.Is_Fast() || true === this.CollaborativeEditing.Is_SingleUser())
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;
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();
......
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