Commit 83b75d63 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34219

parent d4b2212d
......@@ -3101,6 +3101,7 @@ DrawingObjectsController.prototype =
if(chart_type.getObjectType() === AscDFH.historyitem_type_BarChart)
{
var bChangedGrouping = false;
var nOldGrouping = chart_type.grouping;
if(chart_type.grouping !== need_groupping)
{
chart_type.setGrouping(need_groupping);
......@@ -3113,7 +3114,7 @@ DrawingObjectsController.prototype =
}
if(BAR_GROUPING_PERCENT_STACKED === need_groupping || BAR_GROUPING_STACKED === need_groupping)
{
if(!AscFormat.isRealNumber(chart_type.overlap))
if(!AscFormat.isRealNumber(chart_type.overlap) || nOldGrouping !== BAR_GROUPING_PERCENT_STACKED || nOldGrouping !== BAR_GROUPING_STACKED)
{
chart_type.setOverlap(100);
}
......
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