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

Поправлена проблема с поврежденным файлом. Выставление флагов showLegendKey,...

Поправлена проблема с поврежденным файлом. Выставление флагов showLegendKey, showPercent, showBubbleSize в false при выставлении остальных из меню.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59083 954022d7-b5bf-4e40-9824-e11837661b57
parent 31df0eeb
......@@ -2424,6 +2424,22 @@ DrawingObjectsController.prototype =
if(isRealBool(chartSettings.showVal))
checkDataLabels(chart_type).setShowVal(chartSettings.showVal);
var d_lbls2 = chart_type.dLbls;
if(d_lbls2)
{
if(!isRealBool(d_lbls2.showLegendKey) || d_lbls2.showLegendKey === true)
{
d_lbls2.setShowLegendKey(false);
}
if(!isRealBool(d_lbls2.showPercent) || d_lbls2.showPercent === true)
{
d_lbls2.setShowPercent(false);
}
if(!isRealBool(d_lbls2.showBubbleSize) || d_lbls2.showBubbleSize === true)
{
d_lbls2.setShowBubbleSize(false);
}
}
if(typeof chartSettings.separator === "string" && chartSettings.separator.length > 0)
checkDataLabels(chart_type).setSeparator(chartSettings.separator);
}
......
......@@ -3908,7 +3908,10 @@ BinaryChartWriter.prototype.WriteCT_DoughnutChart = function (oVal) {
}
if (null != oVal.dLbls) {
this.bs.WriteItem(c_oserct_doughnutchartDLBLS, function () {
var oldDlblPos = oVal.dLbls.dLblPos;
oVal.dLbls.dLblPos = null;
oThis.WriteCT_DLbls(oVal.dLbls);
oVal.dLbls.dLblPos = oldDlblPos;
});
}
if (null != oVal.firstSliceAng) {
......
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