mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[pe][bug] fix the problem with broken file after inserting chart with replacePlaceholder
This commit is contained in:
@ -6310,6 +6310,16 @@
|
||||
|
||||
oDrawing.Drawing.setFrameTransform(pr);
|
||||
}
|
||||
else if(oDrawing.GetClassType() === "chart")
|
||||
{
|
||||
AscFormat.CheckSpPrXfrm(oDrawing.Drawing);
|
||||
let xfrm = oDrawing.Drawing.spPr.xfrm;
|
||||
xfrm.setOffX(this.GetPosX() / 36000);
|
||||
xfrm.setOffY(this.GetPosY() / 36000);
|
||||
xfrm.setExtX(this.GetWidth() / 36000);
|
||||
xfrm.setExtY(this.GetHeight() / 36000);
|
||||
oDrawing.Drawing.recalculate();
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user