Commit d869b6f1 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32411

parent f6e27942
......@@ -6,7 +6,7 @@
function checkNormalRotate(rot)
{
var _rot = AscFormat.normalizeRotate(rot);
var _rot = normalizeRotate(rot);
return (_rot >= 0 && _rot < Math.PI * 0.25) || (_rot >= 3 * Math.PI * 0.25 && _rot < 5 * Math.PI * 0.25) || (_rot >= 7 * Math.PI * 0.25 && _rot < 2 * Math.PI);
}
......
......@@ -496,7 +496,7 @@ function CheckExcelDrawingXfrm(xfrm)
function SetXfrmFromMetrics(oDrawing, metrics)
{
AscFormat.CheckSpPrXfrm(oDrawing);
var rot = AscFormat.isRealNumber(oDrawing.spPr.xfrm.rot) ? normalizeRotate(oDrawing.spPr.xfrm.rot) : 0;
var rot = AscFormat.isRealNumber(oDrawing.spPr.xfrm.rot) ? AscFormat.normalizeRotate(oDrawing.spPr.xfrm.rot) : 0;
var metricExtX, metricExtY;
if(!(oDrawing instanceof AscFormat.CGroupShape))
......@@ -2449,7 +2449,7 @@ CShape.prototype.recalculateLocalTransform = function(transform)
this.y = metrics.y;
extX = metrics.extX;
extY = metrics.extY;
var rot = this.spPr && this.spPr.xfrm && AscFormat.isRealNumber(this.spPr.xfrm.rot) ? normalizeRotate(this.spPr.xfrm.rot) : 0;
var rot = this.spPr && this.spPr.xfrm && AscFormat.isRealNumber(this.spPr.xfrm.rot) ? AscFormat.normalizeRotate(this.spPr.xfrm.rot) : 0;
this.rot = rot;
var metricExtX, metricExtY;
if(!(this instanceof AscFormat.CGroupShape))
......
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