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

неправльно отдавали позицию легенды

parent 9b6b31d1
......@@ -2630,7 +2630,7 @@ DrawingObjectsController.prototype =
{
chart.setLegend(new AscFormat.CLegend());
}
if(chart.legend.legendPos !== legend_pos_settings)
if(chart.legend.legendPos !== legend_pos_settings && legend_pos_settings !== c_oAscChartLegendShowSettings.layout)
chart.legend.setLegendPos(legend_pos_settings);
var b_overlay = c_oAscChartLegendShowSettings.leftOverlay === legend_pos_settings || legend_pos_settings === c_oAscChartLegendShowSettings.rightOverlay;
if(chart.legend.overlay !== b_overlay)
......@@ -3932,7 +3932,7 @@ DrawingObjectsController.prototype =
if(chart.legend)
{
ret.putLegendPos(AscFormat.isRealNumber(chart.legend.legendPos) ? chart.legend.legendPos : c_oAscChartLegendShowSettings.layout);
ret.putLegendPos(AscFormat.isRealNumber(chart.legend.legendPos) ? chart.legend.legendPos : c_oAscChartLegendShowSettings.bottom);
}
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