Merge pull request #1987 from ONLYOFFICE/fix/open-edit-diagram

[SSE] Fix bug with opening chart editor
This commit is contained in:
Julia Radzhabova 2022-09-30 18:31:09 +03:00 committed by GitHub
commit b4950b3681
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2321,14 +2321,14 @@ define([
}
var self = this,
listStyles = this.toolbar.mode.isEditOle ? self.toolbar.mnuCellStylePicker: self.toolbar.listStyles,
menuPicker = this.toolbar.mode.isEditOle ? listStyles: listStyles.menuPicker;
listStyles = this.toolbar.mode.isEditOle ? self.toolbar.mnuCellStylePicker: self.toolbar.listStyles;
if (!listStyles) {
self.styles = styles;
return;
}
var menuPicker = this.toolbar.mode.isEditOle ? listStyles: listStyles.menuPicker;
var mainController = this.getApplication().getController('Main');
var count = menuPicker.store.length;
var rec = menuPicker.getSelectedRec();