Commit 060ab9b2 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug #31827 - MS Excel считает экспортированную книгу поврежденной и удаляет 3D...

Bug #31827 - MS Excel считает экспортированную книгу поврежденной и удаляет 3D диаграмму типа Pie, измененную на диаграмму 3D другого типа

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68685 954022d7-b5bf-4e40-9824-e11837661b57
parent 8dc81d21
...@@ -3045,11 +3045,13 @@ DrawingObjectsController.prototype = ...@@ -3045,11 +3045,13 @@ DrawingObjectsController.prototype =
{ {
if(chart_type.dLbls) if(chart_type.dLbls)
chart_type.setDLbls(null); chart_type.setDLbls(null);
chart_type.removeDataLabels();
} }
else else
{ {
if(isRealNumber(DLBL_POS_DEFINES_MAP[data_labels_pos_setting])) if(isRealNumber(DLBL_POS_DEFINES_MAP[data_labels_pos_setting]))
{ {
chart_type.removeDataLabels();
if(!chart_type.dLbls) if(!chart_type.dLbls)
{ {
var d_lbls = new CDLbls(); var d_lbls = new CDLbls();
...@@ -3105,6 +3107,10 @@ DrawingObjectsController.prototype = ...@@ -3105,6 +3107,10 @@ DrawingObjectsController.prototype =
{ {
finish_dlbl_pos = DLBL_POS_CTR; finish_dlbl_pos = DLBL_POS_CTR;
} }
if(chart.view3D)
{
finish_dlbl_pos = null;
}
break; break;
} }
case historyitem_type_PieChart: case historyitem_type_PieChart:
......
...@@ -2457,7 +2457,7 @@ CBarChart.prototype = ...@@ -2457,7 +2457,7 @@ CBarChart.prototype =
var i; var i;
for(i = 0; i < this.series.length; ++i) for(i = 0; i < this.series.length; ++i)
{ {
if(typeof this.series[i].setDLbls === "function") if(typeof this.series[i].setDLbls === "function" && this.series[i].dLbls)
this.series[i].setDLbls(null); this.series[i].setDLbls(null);
} }
}, },
......
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