Commit 627b544c authored by Sergey Luzyanin's avatar Sergey Luzyanin

getNearestPos

parent aae458b5
...@@ -857,7 +857,7 @@ CShape.prototype.getNearestPos = function(x, y, pageIndex) ...@@ -857,7 +857,7 @@ CShape.prototype.getNearestPos = function(x, y, pageIndex)
{ {
var t_x = this.invertTransformText.TransformPointX(x, y); var t_x = this.invertTransformText.TransformPointX(x, y);
var t_y = this.invertTransformText.TransformPointY(x, y); var t_y = this.invertTransformText.TransformPointY(x, y);
var nearest_pos = this.textBoxContent.Get_NearestPos(pageIndex, t_x, t_y, false); var nearest_pos = this.textBoxContent.Get_NearestPos(0, t_x, t_y, false);
return nearest_pos; return nearest_pos;
} }
return null; return null;
......
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