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,29 +2085,14 @@ asc_docs_api.prototype.ShapeApply = function(prop) ...@@ -2085,29 +2085,14 @@ asc_docs_api.prototype.ShapeApply = function(prop)
else else
{ {
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
var oProp = prop; var oProp = prop;
this.asyncImageEndLoaded2 = function(_image) this.asyncImageEndLoaded2 = function(_image)
{
if(!(this.noCreatePoint === true))
{ {
this.WordControl.m_oLogicDocument.ShapeApply(oProp); this.WordControl.m_oLogicDocument.ShapeApply(oProp);
this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url); this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null; 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, []);
}
}
} }
} }
else else
...@@ -3725,7 +3710,6 @@ asc_docs_api.prototype.asc_getComments = function() ...@@ -3725,7 +3710,6 @@ asc_docs_api.prototype.asc_getComments = function()
asc_docs_api.prototype.OpenDocumentEndCallback = function() asc_docs_api.prototype.OpenDocumentEndCallback = function()
{ {
this.bNoSendComments = false;
var bIsScroll = false; var bIsScroll = false;
if (0 == this.DocumentType) if (0 == this.DocumentType)
...@@ -3745,9 +3729,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -3745,9 +3729,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this.isApplyChangesOnOpenEnabled = false; this.isApplyChangesOnOpenEnabled = false;
this.isApplyChangesOnOpen = true; this.isApplyChangesOnOpen = true;
this.bNoSendComments = true; this.bNoSendComments = true;
var OtherChanges = CollaborativeEditing.m_aChanges.length > 0 ;
CollaborativeEditing.Apply_Changes(); CollaborativeEditing.Apply_Changes();
CollaborativeEditing.Release_Locks(); CollaborativeEditing.Release_Locks();
this.bNoSendComments = false; this.bNoSendComments = false;
if(OtherChanges)
return; return;
} }
} }
......
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