Commit 8d76ae97 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fixed problem with empty xfrm in groups

parent 6085f6a1
...@@ -4924,7 +4924,27 @@ function BinaryPPTYLoader() ...@@ -4924,7 +4924,27 @@ function BinaryPPTYLoader()
s.Seek2(_end_rec); s.Seek2(_end_rec);
return shape; return shape;
} };
this.CheckGroupXfrm = function(oGroup){
if(!oGroup || !oGroup.spPr){
return;
}
if(!oGroup.spPr.xfrm){
var oXfrm = new AscFormat.CXfrm();
oXfrm.setOffX(0);
oXfrm.setOffY(0);
oXfrm.setChOffX(0);
oXfrm.setChOffY(0);
oXfrm.setExtX(50);
oXfrm.setExtY(50);
oXfrm.setChExtX(50);
oXfrm.setChExtY(50);
oGroup.spPr.setXfrm(oXfrm);
oGroup.updateCoordinatesAfterInternalResize();
oGroup.spPr.xfrm.setParent(oGroup.spPr);
}
};
this.ReadGroupShape = function() this.ReadGroupShape = function()
{ {
...@@ -5045,7 +5065,7 @@ function BinaryPPTYLoader() ...@@ -5045,7 +5065,7 @@ function BinaryPPTYLoader()
} }
} }
} }
this.CheckGroupXfrm(shape);
s.Seek2(_end_rec); s.Seek2(_end_rec);
this.TempGroupObject = null; this.TempGroupObject = null;
return shape; return shape;
...@@ -9183,7 +9203,8 @@ function CPres() ...@@ -9183,7 +9203,8 @@ function CPres()
} }
} }
} }
this.Reader.CheckGroupXfrm(shape);
this.ParaDrawing = oldParaDrawing; this.ParaDrawing = oldParaDrawing;
s.Seek2(_end_rec); s.Seek2(_end_rec);
this.TempGroupObject = null; this.TempGroupObject = 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