Commit 2a52cc7a authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] For Bug 34118 (when select format from Accounting style menu and open...

[SSE] For Bug 34118 (when select format from Accounting style menu and open FormatSettingsDialog - asc_getSymbol in format properties is null).
parent d1e3f6ea
......@@ -898,8 +898,15 @@ define([
},
onNumberFormatMenu: function(menu, item) {
if (this.api)
this.api.asc_setCellFormat(item.value);
if (this.api) {
var info = new Asc.asc_CFormatCellsInfo();
info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
info.asc_setSeparator(false);
info.asc_setSymbol(item.value);
var format = this.api.asc_getFormatCells(info);
if (format && format.length>0)
this.api.asc_setCellFormat(format[0]);
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Number Format');
......
......@@ -692,23 +692,23 @@ define([
items : [
{
caption : me.txtDollar,
value : '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'
value : 0x0409 // $ en-US
},
{
caption : me.txtEuro,
value : '_(€* #,##0.00_);_(€* (#,##0.00);_(€* "-"??_);_(@_)'
value : 0x0407 // € de-DE
},
{
caption : me.txtPound,
value : '_(£* #,##0.00_);_(£* (#,##0.00);_(£* "-"??_);_(@_)'
value : 0x0809 // £ en-GB
},
{
caption : me.txtRouble,
value : '_-* #,##0.00[$ ₽-419]_-;-* #,##0.00[$ ₽-419]_-;_-* "-"??[$ ₽-419]_-;_-@_-'
value : 0x0419 // ₽ ru-RU
},
{
caption : me.txtYen,
value : '_(¥* #,##0.00_);_(¥* (#,##0.00);_(¥* "-"??_);_(@_)'
value : 0x0411 // ¥ ja-JP
}
]
})
......
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