Commit 9a48530b authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33404.

parent 28e06875
...@@ -1759,17 +1759,24 @@ background-repeat: no-repeat;\ ...@@ -1759,17 +1759,24 @@ background-repeat: no-repeat;\
if (AscCommon.CollaborativeEditing.Get_GlobalLock()) if (AscCommon.CollaborativeEditing.Get_GlobalLock())
return; return;
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_PasteHotKey); var _logicDoc = this.WordControl.m_oLogicDocument;
switch (_format) if (!_logicDoc)
return;
if (false === _logicDoc.Document_Is_SelectionLocked(changestype_Paragraph_Content))
{ {
case AscCommon.c_oAscClipboardDataFormat.HtmlElement: _logicDoc.Create_NewHistoryPoint(AscDFH.historydescription_Document_PasteHotKey);
AscCommon.Editor_Paste_Exec(this, data1, data2); switch (_format)
break; {
case AscCommon.c_oAscClipboardDataFormat.Internal: case AscCommon.c_oAscClipboardDataFormat.HtmlElement:
AscCommon.Editor_Paste_Exec(this, null, null, data1); AscCommon.Editor_Paste_Exec(this, data1, data2);
break; break;
default: case AscCommon.c_oAscClipboardDataFormat.Internal:
break; AscCommon.Editor_Paste_Exec(this, null, null, data1);
break;
default:
break;
}
} }
}; };
......
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