Commit ce5fd3b3 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

К предыдущей заливке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64542 954022d7-b5bf-4e40-9824-e11837661b57
parent 2737e562
......@@ -3462,7 +3462,7 @@ CShape.prototype =
},
check_bounds: function (checker) {
if (this.spPr && this.spPr.geometry && this.spPr.geometry.pathLst.length > 0) {
if (this.spPr && this.spPr.geometry) {
this.spPr.geometry.check_bounds(checker);
}
else {
......
......@@ -132,7 +132,7 @@ function OverlayObject(geometry, extX, extY, brush, pen, transform )
this.check_bounds = function(boundsChecker)
{
if(this.geometry && this.geometry.pathLst.length > 0)
if(this.geometry )
{
this.geometry.check_bounds(boundsChecker);
}
......@@ -169,7 +169,7 @@ ObjectToDraw.prototype =
{
check_bounds: function(boundsChecker)
{
if(this.geometry && this.geometry.pathLst.length > 0)
if(this.geometry)
{
this.geometry.check_bounds(boundsChecker);
}
......
......@@ -479,7 +479,7 @@ CShapeDrawer.prototype =
{
this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0)
if (!geom)
{
this.IsRectShape = true;
}
......@@ -633,7 +633,7 @@ CShapeDrawer.prototype =
if (this.Graphics.IsSlideBoundsCheckerType)
{
// slide bounds checker
if(geom && geom.pathLst.length > 0)
if(geom)
{
geom.draw(this);
}
......@@ -657,7 +657,7 @@ CShapeDrawer.prototype =
}
this.NativeGraphics["PD_StartShapeDraw"](this.IsRectShape);
if(geom && geom.pathLst.length > 0)
if(geom)
{
geom.draw(this);
}
......@@ -693,7 +693,7 @@ CShapeDrawer.prototype =
this.Graphics.put_TextureBounds(this.min_x, this.min_y, this.max_x - this.min_x, this.max_y - this.min_y);
}
if (geom && geom.pathLst.length > 0)
if (geom)
{
geom.draw(this);
}
......
......@@ -3780,7 +3780,9 @@ function BinaryPPTYLoader()
}
case 1:
{
spPr.setGeometry(this.ReadGeometry(spPr.xfrm));
var oGeometry = this.ReadGeometry(spPr.xfrm);
if(oGeometry && oGeometry.pathLst.length > 0)
spPr.setGeometry(oGeometry);
if(spPr.geometry)
spPr.geometry.setParent(spPr);
break;
......
......@@ -499,7 +499,7 @@ CShapeDrawer.prototype =
{
this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0)
if (!geom)
{
this.IsRectShape = true;
}
......@@ -698,7 +698,7 @@ CShapeDrawer.prototype =
this.Graphics.m_oContext.globalCompositeOperation = "destination-out";
}
if(geom && geom.pathLst.length > 0)
if(geom)
{
geom.draw(this);
}
......
......@@ -500,7 +500,7 @@ CShapeDrawer.prototype =
{
this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0)
if (!geom)
{
this.IsRectShape = true;
}
......@@ -665,7 +665,7 @@ CShapeDrawer.prototype =
this.Graphics.put_TextureBounds(this.min_x, this.min_y, this.max_x - this.min_x, this.max_y - this.min_y);
}
if(geom && geom.pathLst.length > 0)
if(geom)
{
geom.draw(this);
}
......
......@@ -629,7 +629,9 @@ function CPPTXContentLoader()
}
case 1:
{
spPr.setGeometry(this.Reader.ReadGeometry(spPr.xfrm));
var oGeometry = this.Reader.ReadGeometry(spPr.xfrm);
if(oGeometry && oGeometry.pathLst.length > 0)
spPr.setGeometry(oGeometry);
if(spPr.geometry)
spPr.geometry.setParent(spPr);
break;
......
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