Commit d97ddef2 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 33110

parent 9eb68152
...@@ -1233,6 +1233,10 @@ CDocumentContent.prototype.Draw = function(nPageIndex, ...@@ -1233,6 +1233,10 @@ CDocumentContent.prototype.Draw = function(nPageIndex,
pGraphics.AddClipRect(ClipInfo.X0, Bounds.Top - Correction, Math.abs(ClipInfo.X1 - ClipInfo.X0), Bounds.Bottom - Bounds.Top + Correction); pGraphics.AddClipRect(ClipInfo.X0, Bounds.Top - Correction, Math.abs(ClipInfo.X1 - ClipInfo.X0), Bounds.Bottom - Bounds.Top + Correction);
} }
if (this.LogicDocument)
this.LogicDocument.DrawingObjects.drawWrappingObjectsInContent(this.Get_AbsolutePage(CurPage), pGraphics, this);
var Page_StartPos = this.Pages[CurPage].Pos; var Page_StartPos = this.Pages[CurPage].Pos;
var Page_EndPos = this.Pages[CurPage].EndPos; var Page_EndPos = this.Pages[CurPage].EndPos;
for (var Index = Page_StartPos; Index <= Page_EndPos; Index++) for (var Index = Page_StartPos; Index <= Page_EndPos; Index++)
...@@ -1241,8 +1245,6 @@ CDocumentContent.prototype.Draw = function(nPageIndex, ...@@ -1241,8 +1245,6 @@ CDocumentContent.prototype.Draw = function(nPageIndex,
this.Content[Index].Draw(ElementPageIndex, pGraphics); this.Content[Index].Draw(ElementPageIndex, pGraphics);
} }
if (this.LogicDocument)
this.LogicDocument.DrawingObjects.drawWrappingObjectsInContent(this.Get_AbsolutePage(CurPage), pGraphics, this);
if (ClipInfo) if (ClipInfo)
{ {
......
...@@ -372,15 +372,15 @@ CGroupShape.prototype.recalculateBounds = function() ...@@ -372,15 +372,15 @@ CGroupShape.prototype.recalculateBounds = function()
for(var i = 0; i < sp_tree.length; ++i) for(var i = 0; i < sp_tree.length; ++i)
{ {
sp_tree[i].recalculate(); sp_tree[i].recalculate();
//var bounds = sp_tree[i].bounds; var bounds = sp_tree[i].bounds;
//var l = bounds.l; var l = bounds.l;
//var r = bounds.r; var r = bounds.r;
//var t = bounds.t; var t = bounds.t;
//var b = bounds.b; var b = bounds.b;
//x_arr_max.push(r); x_arr_max.push(r);
//x_arr_min.push(l); x_arr_min.push(l);
//y_arr_max.push(b); y_arr_max.push(b);
//y_arr_min.push(t); y_arr_min.push(t);
} }
......
...@@ -683,12 +683,10 @@ ParaDrawing.prototype.getXfrmExtY = function() ...@@ -683,12 +683,10 @@ ParaDrawing.prototype.getXfrmExtY = function()
}; };
ParaDrawing.prototype.Get_Bounds = function() ParaDrawing.prototype.Get_Bounds = function()
{ {
return { var W, H;
Left : this.X, W = this.GraphicObj.bounds.w;
Top : this.Y, H = this.GraphicObj.bounds.h;
Bottom : this.Y + this.getXfrmExtY(), return {Left : this.X, Top : this.Y, Bottom : this.Y + H, Right : this.X + W};
Right : this.X + this.getXfrmExtX()
};
}; };
ParaDrawing.prototype.Search = function(Str, Props, SearchEngine, Type) ParaDrawing.prototype.Search = function(Str, Props, SearchEngine, Type)
{ {
......
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