Commit 18383ec2 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix bug with changing size inline charts after change view 3d props;

track in word without opacity
parent 38a3de02
......@@ -644,14 +644,15 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY)
overlay.SetCurrentPage(this.chartSpace.selectStartPage);
}
var dOldAlpha = null;
if(AscFormat.isRealNumber(overlay.globalAlpha) && overlay.put_GlobalAlpha){
dOldAlpha = overlay.globalAlpha;
overlay.put_GlobalAlpha(false, 1);
var oGraphics = overlay.Graphics ? overlay.Graphics : overlay;
if(AscFormat.isRealNumber(oGraphics.globalAlpha) && oGraphics.put_GlobalAlpha){
dOldAlpha = oGraphics.globalAlpha;
oGraphics.put_GlobalAlpha(false, 1);
}
this.objectToDraw.draw(overlay, transform);
this.objectToDraw2.draw(overlay, transform);
if(AscFormat.isRealNumber(dOldAlpha) && overlay.put_GlobalAlpha){
overlay.put_GlobalAlpha(true, dOldAlpha);
if(AscFormat.isRealNumber(dOldAlpha) && oGraphics.put_GlobalAlpha){
oGraphics.put_GlobalAlpha(true, dOldAlpha);
}
};
......
......@@ -643,7 +643,10 @@ RotateState.prototype =
{
History.Create_NewPoint(AscDFH.historydescription_Document_RotateInlineDrawing);
this.drawingObjects.arrTrackObjects[0].trackEnd(true);
this.majorObject.parent.CheckWH();
if(!this.drawingObjects.arrTrackObjects[0].view3D)
{
this.majorObject.parent.CheckWH();
}
this.drawingObjects.document.Recalculate();
}
}
......
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