Commit 4f5e5565 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Chart size

parent d90bb719
...@@ -9620,10 +9620,17 @@ function CreateLnFromPreset(aPreset, index, aBaseColors){ ...@@ -9620,10 +9620,17 @@ function CreateLnFromPreset(aPreset, index, aBaseColors){
function ApplySpPr(aSpPrPr, oObject, index, aBaseColors){ function ApplySpPr(aSpPrPr, oObject, index, aBaseColors){
if(!aSpPrPr){ if(!aSpPrPr){
if(oObject.spPr && oObject.spPr.xfrm){
oObject.spPr.setFill(null);
oObject.spPr.setLn(null);
return
}
oObject.setSpPr(null); oObject.setSpPr(null);
return; return;
} }
oObject.setSpPr(new AscFormat.CSpPr()); if(!oObject.spPr){
oObject.setSpPr(new AscFormat.CSpPr());
}
oObject.spPr.setParent(oObject); oObject.spPr.setParent(oObject);
oObject.spPr.setFill(CreateUnifillFromPreset(aSpPrPr[0], index, aBaseColors)); oObject.spPr.setFill(CreateUnifillFromPreset(aSpPrPr[0], index, aBaseColors));
oObject.spPr.setLn(CreateLnFromPreset(aSpPrPr[1], index, aBaseColors)); oObject.spPr.setLn(CreateLnFromPreset(aSpPrPr[1], index, aBaseColors));
......
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