Commit 79ddb283 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24892 - Ошибка в консоли после изменения типа заливки на "pattern" после "color fill"

Bug 24998 - Ошибка в консоли при клике на второй маркер изменения градиента

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57002 954022d7-b5bf-4e40-9824-e11837661b57
parent 21f34090
......@@ -2110,6 +2110,10 @@ DrawingObjectsController.prototype =
val_axis = axis_by_types.valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
}
......@@ -2127,6 +2131,10 @@ DrawingObjectsController.prototype =
val_axis = axis_by_types.valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
if(need_bar_dir = BAR_DIR_BAR)
......@@ -2169,6 +2177,10 @@ DrawingObjectsController.prototype =
val_axis = chart_type.getAxisByTypes().valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
}
......@@ -2184,6 +2196,10 @@ DrawingObjectsController.prototype =
val_axis = new_chart_type.getAxisByTypes().valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
}
......@@ -2237,6 +2253,10 @@ DrawingObjectsController.prototype =
val_axis = chart_type.getAxisByTypes().valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
}
......@@ -2250,6 +2270,10 @@ DrawingObjectsController.prototype =
val_axis = new_chart_type.getAxisByTypes().valAx;
for(i = 0; i < val_axis.length; ++i)
{
if(!val_axis[i].numFmt)
{
val_axis[i].setNumFmt(new CNumFmt());
}
if(val_axis[i].numFmt.formatCode !== need_num_fmt)
val_axis[i].numFmt.setFormatCode(need_num_fmt);
}
......
......@@ -38,7 +38,7 @@ CGroupShape.prototype.setRecalcObject = CShape.prototype.setRecalcObject;
CGroupShape.prototype.Get_ColorMap = CShape.prototype.Get_ColorMap;
CGroupShape.prototype.getTargetDocContent = DrawingObjectsController.prototype.getTargetDocContent,
CGroupShape.prototype.getTargetDocContent = DrawingObjectsController.prototype.getTargetDocContent;
CGroupShape.prototype.documentUpdateInterfaceState = function()
{
if(this.selection.textSelection)
......
......@@ -184,6 +184,8 @@ function CorrectUniColor(asc_color, unicolor, flag)
// тут выставляется ТОЛЬКО из меню. поэтому:
var _index = parseInt(asc_color.value);
if(isNaN(_index))
break;
var _id = (_index / 6) >> 0;
var _pos = _index - _id * 6;
......@@ -203,7 +205,7 @@ function CorrectUniColor(asc_color, unicolor, flag)
if (editor && editor.WordControl && editor.WordControl.m_oDrawingDocument && editor.WordControl.m_oDrawingDocument.GuiControlColorsMap)
{
var _map = editor.WordControl.m_oDrawingDocument.GuiControlColorsMap;
_flag = isRealNumber(flag) ? flag : 0;
_flag = isRealNumber(flag) ? flag : 1;
__mods = GetDefaultMods(_map[_id].r, _map[_id].g, _map[_id].b, _pos, _flag);
}
else
......
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