Commit 781cb930 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix crash

parent 7093b05d
......@@ -396,8 +396,9 @@
{
var oLogicDocument = window.g_asc_plugins.api.WordControl ?
window.g_asc_plugins.api.WordControl.m_oLogicDocument : null;
oLogicDocument.LockPanelStyles();
if(AscCommon.c_oEditorId.Word === editorId){
oLogicDocument.LockPanelStyles();
}
}
var _script = "(function(){ var Api = window.g_asc_plugins.api;\n" + value + "})();";
......@@ -432,7 +433,9 @@
}
delete window.g_asc_plugins.images_rename;
window.g_asc_plugins.api.asc_Recalculate();
oLogicDocument.UnlockPanelStyles(true);
if(AscCommon.c_oEditorId.Word === editorId) {
oLogicDocument.UnlockPanelStyles(true);
}
});
}
else if (AscCommon.c_oEditorId.Spreadsheet === editorId)
......
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