[SSE] Fix context menu for image/shape when image/shape is selected after plugin object

This commit is contained in:
Julia Radzhabova 2019-02-27 14:51:52 +03:00
parent 03b81f8007
commit cc4790ff70
4 changed files with 5 additions and 0 deletions

View file

@ -2370,6 +2370,7 @@ define([
caption: this.textRotate270, caption: this.textRotate270,
value : 0 value : 0
}).on('click', _.bind(me.onImgRotate, me)), }).on('click', _.bind(me.onImgRotate, me)),
{ caption: '--' },
new Common.UI.MenuItem({ new Common.UI.MenuItem({
caption: this.textFlipH, caption: this.textFlipH,
value : 1 value : 1

View file

@ -2807,6 +2807,7 @@ define([
caption: me.textRotate270, caption: me.textRotate270,
value : 0 value : 0
}).on('click', _.bind(onImgRotate, me)), }).on('click', _.bind(onImgRotate, me)),
{ caption: '--' },
new Common.UI.MenuItem({ new Common.UI.MenuItem({
caption: me.textFlipH, caption: me.textFlipH,
value : 1 value : 1

View file

@ -1468,6 +1468,8 @@ define([
if (!documentHolder.imgMenu || !showMenu && !documentHolder.imgMenu.isVisible()) return; if (!documentHolder.imgMenu || !showMenu && !documentHolder.imgMenu.isVisible()) return;
isimagemenu = isshapemenu = ischartmenu = false; isimagemenu = isshapemenu = ischartmenu = false;
documentHolder.mnuImgAdvanced.imageInfo = undefined;
var has_chartprops = false, var has_chartprops = false,
signGuid; signGuid;
var selectedObjects = this.api.asc_getGraphicObjectProps(); var selectedObjects = this.api.asc_getGraphicObjectProps();

View file

@ -704,6 +704,7 @@ define([
type : 'rotate', type : 'rotate',
value : 0 value : 0
}), }),
{ caption: '--' },
new Common.UI.MenuItem({ new Common.UI.MenuItem({
caption: me.textFlipH, caption: me.textFlipH,
type : 'flip', type : 'flip',