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

Делаем Undo и чистим историю в случае неудачной попытки вставки контента

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64680 954022d7-b5bf-4e40-9824-e11837661b57
parent 6ddbf56f
......@@ -2579,8 +2579,15 @@ PasteProcessor.prototype =
//TODO проверку на excel пеерсмотреть!!!!
oSelectedContent.On_EndCollectElements(this.oLogicDocument);
if(!this.pasteInExcel && !this.oLogicDocument.Can_InsertContent(oSelectedContent, NearPos))
return;
{
if(!this.pasteInExcel)
{
this.oLogicDocument.Document_Undo();
History.Clear_Redo();
}
return;
}
oDoc.Insert_Content(oSelectedContent, NearPos);
if(this.oLogicDocument && this.oLogicDocument.DrawingObjects)
{
......
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