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 = ...@@ -3462,7 +3462,7 @@ CShape.prototype =
}, },
check_bounds: function (checker) { 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); this.spPr.geometry.check_bounds(checker);
} }
else { else {
......
...@@ -132,7 +132,7 @@ function OverlayObject(geometry, extX, extY, brush, pen, transform ) ...@@ -132,7 +132,7 @@ function OverlayObject(geometry, extX, extY, brush, pen, transform )
this.check_bounds = function(boundsChecker) this.check_bounds = function(boundsChecker)
{ {
if(this.geometry && this.geometry.pathLst.length > 0) if(this.geometry )
{ {
this.geometry.check_bounds(boundsChecker); this.geometry.check_bounds(boundsChecker);
} }
...@@ -169,7 +169,7 @@ ObjectToDraw.prototype = ...@@ -169,7 +169,7 @@ ObjectToDraw.prototype =
{ {
check_bounds: function(boundsChecker) check_bounds: function(boundsChecker)
{ {
if(this.geometry && this.geometry.pathLst.length > 0) if(this.geometry)
{ {
this.geometry.check_bounds(boundsChecker); this.geometry.check_bounds(boundsChecker);
} }
......
...@@ -479,7 +479,7 @@ CShapeDrawer.prototype = ...@@ -479,7 +479,7 @@ CShapeDrawer.prototype =
{ {
this.fromShape(shape, graphics); this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0) if (!geom)
{ {
this.IsRectShape = true; this.IsRectShape = true;
} }
...@@ -633,7 +633,7 @@ CShapeDrawer.prototype = ...@@ -633,7 +633,7 @@ CShapeDrawer.prototype =
if (this.Graphics.IsSlideBoundsCheckerType) if (this.Graphics.IsSlideBoundsCheckerType)
{ {
// slide bounds checker // slide bounds checker
if(geom && geom.pathLst.length > 0) if(geom)
{ {
geom.draw(this); geom.draw(this);
} }
...@@ -657,7 +657,7 @@ CShapeDrawer.prototype = ...@@ -657,7 +657,7 @@ CShapeDrawer.prototype =
} }
this.NativeGraphics["PD_StartShapeDraw"](this.IsRectShape); this.NativeGraphics["PD_StartShapeDraw"](this.IsRectShape);
if(geom && geom.pathLst.length > 0) if(geom)
{ {
geom.draw(this); geom.draw(this);
} }
...@@ -693,7 +693,7 @@ CShapeDrawer.prototype = ...@@ -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); 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); geom.draw(this);
} }
......
...@@ -3780,7 +3780,9 @@ function BinaryPPTYLoader() ...@@ -3780,7 +3780,9 @@ function BinaryPPTYLoader()
} }
case 1: 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) if(spPr.geometry)
spPr.geometry.setParent(spPr); spPr.geometry.setParent(spPr);
break; break;
......
...@@ -499,7 +499,7 @@ CShapeDrawer.prototype = ...@@ -499,7 +499,7 @@ CShapeDrawer.prototype =
{ {
this.fromShape(shape, graphics); this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0) if (!geom)
{ {
this.IsRectShape = true; this.IsRectShape = true;
} }
...@@ -698,7 +698,7 @@ CShapeDrawer.prototype = ...@@ -698,7 +698,7 @@ CShapeDrawer.prototype =
this.Graphics.m_oContext.globalCompositeOperation = "destination-out"; this.Graphics.m_oContext.globalCompositeOperation = "destination-out";
} }
if(geom && geom.pathLst.length > 0) if(geom)
{ {
geom.draw(this); geom.draw(this);
} }
......
...@@ -500,7 +500,7 @@ CShapeDrawer.prototype = ...@@ -500,7 +500,7 @@ CShapeDrawer.prototype =
{ {
this.fromShape(shape, graphics); this.fromShape(shape, graphics);
if (!geom || geom.pathLst.length === 0) if (!geom)
{ {
this.IsRectShape = true; this.IsRectShape = true;
} }
...@@ -665,7 +665,7 @@ CShapeDrawer.prototype = ...@@ -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); 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); geom.draw(this);
} }
......
...@@ -629,7 +629,9 @@ function CPPTXContentLoader() ...@@ -629,7 +629,9 @@ function CPPTXContentLoader()
} }
case 1: 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) if(spPr.geometry)
spPr.geometry.setParent(spPr); spPr.geometry.setParent(spPr);
break; 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