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:
@ -6307,9 +6307,19 @@
|
||||
pr.FrameHeight = this.GetHeight() / 36000;
|
||||
pr.Force = true;
|
||||
oDrawing.Drawing.recalculate();
|
||||
|
||||
|
||||
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