Commit 0056f3d6 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 2cb99333
...@@ -357364,6 +357364,8 @@ CDrawingDocument.prototype = ...@@ -357364,6 +357364,8 @@ CDrawingDocument.prototype =
_ret.push(this.TextMatrix.tx); _ret.push(this.TextMatrix.tx);
_ret.push(this.TextMatrix.ty); _ret.push(this.TextMatrix.ty);
} }
return _ret;
} }
var _select = this.LogicDocument.Get_SelectionBounds(); var _select = this.LogicDocument.Get_SelectionBounds();
...@@ -357376,21 +357378,40 @@ CDrawingDocument.prototype = ...@@ -357376,21 +357378,40 @@ CDrawingDocument.prototype =
this.SelectRect1 = _rect1; this.SelectRect1 = _rect1;
this.SelectRect2 = _rect2; this.SelectRect2 = _rect2;
_ret.push(_select.Start.X); var _x1 = _rect1.X;
_ret.push(_select.Start.Y); var _y1 = _rect1.Y;
_ret.push(_select.Start.Page); var _y11 = _rect1.Y + _rect.H;
_ret.push(_select.End.X + _select.End.W); var _x2 = _rect2.X + _rect2.W;
_ret.push(_select.End.Y + _select.End.H); var _y2 = _rect2.Y;
_ret.push(_select.End.Page); var _y22 = _rect2.Y + _rect2.Y;
if (this.TextMatrix && !this.TextMatrix.IsIdentity()) var _eps = 0.0001;
if (Math.abs(_x1 - _x2) < _eps &&
Math.abs(_y1 - _y2) < _eps &&
Math.abs(_y11 - _y22) < _eps)
{ {
_ret.push(this.TextMatrix.sx); _ret[0] = 0;
_ret.push(this.TextMatrix.shy); }
_ret.push(this.TextMatrix.shx); else
_ret.push(this.TextMatrix.sy); {
_ret.push(this.TextMatrix.tx); _ret.push(_select.Start.X);
_ret.push(this.TextMatrix.ty); _ret.push(_select.Start.Y);
_ret.push(_select.Start.Page);
_ret.push(_select.End.X + _select.End.W);
_ret.push(_select.End.Y + _select.End.H);
_ret.push(_select.End.Page);
if (this.TextMatrix && !this.TextMatrix.IsIdentity())
{
_ret.push(this.TextMatrix.sx);
_ret.push(this.TextMatrix.shy);
_ret.push(this.TextMatrix.shx);
_ret.push(this.TextMatrix.sy);
_ret.push(this.TextMatrix.tx);
_ret.push(this.TextMatrix.ty);
}
return _ret;
} }
} }
...@@ -357403,6 +357424,8 @@ CDrawingDocument.prototype = ...@@ -357403,6 +357424,8 @@ CDrawingDocument.prototype =
_ret.push(_object_bounds.maxX); _ret.push(_object_bounds.maxX);
_ret.push(_object_bounds.maxY); _ret.push(_object_bounds.maxY);
_ret.push(_object_bounds.pageIndex); _ret.push(_object_bounds.pageIndex);
return _ret;
} }
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