[PE] Fix Bug 35231.

This commit is contained in:
Julia Radzhabova 2017-07-04 11:01:28 +03:00
parent d0b9c87525
commit 506cedd75f

View file

@ -377,9 +377,10 @@ define([
this._state.no_paragraph = true;
var i = -1;
while (++i < selectedObjects.length) {
if (selectedObjects[i].get_ObjectType() == Asc.c_oAscTypeSelectElement.Paragraph) {
var type = selectedObjects[i].get_ObjectType();
if (type == Asc.c_oAscTypeSelectElement.Paragraph || type == Asc.c_oAscTypeSelectElement.Shape || type == Asc.c_oAscTypeSelectElement.Chart || type == Asc.c_oAscTypeSelectElement.Table) {
this._state.no_paragraph = selectedObjects[i].get_ObjectValue().get_Locked();
break;
if (this._state.no_paragraph) break; // break if one of the objects is locked
}
}
this._state.no_paragraph = this._state.no_paragraph || this.langMenu.items.length<1;