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

Баг с лишней перерисовкой при сейве.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60172 954022d7-b5bf-4e40-9824-e11837661b57
parent 947496bb
......@@ -2085,28 +2085,13 @@ asc_docs_api.prototype.ShapeApply = function(prop)
else
{
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
var oProp = prop;
this.asyncImageEndLoaded2 = function(_image)
{
if(!(this.noCreatePoint === true))
{
this.WordControl.m_oLogicDocument.ShapeApply(oProp);
this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null;
}
else
{
ExecuteNoHistory(function(){
this.WordControl.m_oLogicDocument.ShapeApply(oProp);
this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null;
}, this, []);
}
this.WordControl.m_oLogicDocument.ShapeApply(oProp);
this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null;
}
}
}
......@@ -3725,7 +3710,6 @@ asc_docs_api.prototype.asc_getComments = function()
asc_docs_api.prototype.OpenDocumentEndCallback = function()
{
this.bNoSendComments = false;
var bIsScroll = false;
if (0 == this.DocumentType)
......@@ -3745,10 +3729,12 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this.isApplyChangesOnOpenEnabled = false;
this.isApplyChangesOnOpen = true;
this.bNoSendComments = true;
var OtherChanges = CollaborativeEditing.m_aChanges.length > 0 ;
CollaborativeEditing.Apply_Changes();
CollaborativeEditing.Release_Locks();
this.bNoSendComments = false;
return;
if(OtherChanges)
return;
}
}
this.WordControl.m_oLogicDocument.Recalculate({Drawings: {All:true, Map: {}}});
......
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