Commit 4825130e authored by Alexander.Trofimov's avatar Alexander.Trofimov

Revert "WRAPPING_TYPE_TOP_AND_BOTTOM -> AscCommon.WRAPPING_TYPE_TOP_AND_BOTTOM"

This reverts commit b6b64e4b.
parent 4e57e725
...@@ -45,7 +45,7 @@ function CBoundsRectForMath(oDrawing) ...@@ -45,7 +45,7 @@ function CBoundsRectForMath(oDrawing)
this.B = oDrawing.wrappingPolygon.bottom - this.Distance.B; this.B = oDrawing.wrappingPolygon.bottom - this.Distance.B;
break; break;
} }
case AscCommon.WRAPPING_TYPE_TOP_AND_BOTTOM: case WRAPPING_TYPE_TOP_AND_BOTTOM:
{ {
var oLimits = editor.WordControl.m_oLogicDocument.Get_PageLimits(oDrawing.PageNum); var oLimits = editor.WordControl.m_oLogicDocument.Get_PageLimits(oDrawing.PageNum);
this.L = oLimits.X; this.L = oLimits.X;
...@@ -77,7 +77,7 @@ function CBoundsRectForMath(oDrawing) ...@@ -77,7 +77,7 @@ function CBoundsRectForMath(oDrawing)
this.B = oDrawing.Y + oDrawing.H; this.B = oDrawing.Y + oDrawing.H;
break; break;
} }
case AscCommon.WRAPPING_TYPE_TOP_AND_BOTTOM: case WRAPPING_TYPE_TOP_AND_BOTTOM:
{ {
var oLimits = editor.WordControl.m_oLogicDocument.Get_PageLimits(oDrawing.PageNum); var oLimits = editor.WordControl.m_oLogicDocument.Get_PageLimits(oDrawing.PageNum);
this.L = oLimits.X; this.L = oLimits.X;
......
...@@ -264,7 +264,7 @@ CWrapPolygon.prototype = ...@@ -264,7 +264,7 @@ CWrapPolygon.prototype =
} }
break; break;
} }
case AscCommon.WRAPPING_TYPE_TOP_AND_BOTTOM: case WRAPPING_TYPE_TOP_AND_BOTTOM:
{ {
if (this.right < LeftField || this.left > RightField) if (this.right < LeftField || this.left > RightField)
return ret; return ret;
......
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