Commit e48c2dbb authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

открытие пустого файла - убрано падение

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57727 954022d7-b5bf-4e40-9824-e11837661b57
parent 01c08718
...@@ -6483,15 +6483,27 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -6483,15 +6483,27 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
CollaborativeEditing.Release_Locks(); CollaborativeEditing.Release_Locks();
} }
History.RecalcData_Add( { Type : historyrecalctype_Inline, Data : { Pos : 0, PageNum : 0 } } ); // History.RecalcData_Add( { Type : historyrecalctype_Inline, Data : { Pos : 0, PageNum : 0 } } );
//Recalculate для Document //Recalculate для Document
Document.CurPos.ContentPos = 0; Document.CurPos.ContentPos = 0;
History.RecalcData_Add({Type: historyrecalctype_Drawing, All: true}); // History.RecalcData_Add({Type: historyrecalctype_Drawing, All: true});
var RecalculateData =
{
Inline : { Pos : 0, PageNum : 0 },
Flow : [],
HdrFtr : [],
Drawings: {
All: true,
Map:{}
}
};
if (!this.isOnlyReaderMode) if (!this.isOnlyReaderMode)
{ {
if (false === this.isSaveFonts_Images) if (false === this.isSaveFonts_Images)
Document.Recalculate(); Document.Recalculate(false, false, RecalculateData);
this.WordControl.m_oDrawingDocument.TargetStart(); this.WordControl.m_oDrawingDocument.TargetStart();
} }
......
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