Commit 9b563181 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 33015

parent 02089da1
...@@ -3689,7 +3689,7 @@ CShape.prototype.hitInTextRectWord = function(x, y) ...@@ -3689,7 +3689,7 @@ CShape.prototype.hitInTextRectWord = function(x, y)
{ {
var content = this.getDocContent && this.getDocContent(); var content = this.getDocContent && this.getDocContent();
if (content) if (content && this.invertTransform)
{ {
var t_x, t_y; var t_x, t_y;
t_x = this.invertTransform.TransformPointX(x, y); t_x = this.invertTransform.TransformPointX(x, y);
...@@ -4806,7 +4806,7 @@ CShape.prototype.hitToAdjustment = function (x, y) { ...@@ -4806,7 +4806,7 @@ CShape.prototype.hitToAdjustment = function (x, y) {
return ret; return ret;
} }
} }
if(this.recalcInfo.warpGeometry) if(this.recalcInfo.warpGeometry && this.invertTransformTextWordArt)
{ {
invert_transform = this.invertTransformTextWordArt; invert_transform = this.invertTransformTextWordArt;
t_x = invert_transform.TransformPointX(x, y); t_x = invert_transform.TransformPointX(x, y);
......
...@@ -854,7 +854,7 @@ CShape.prototype.checkPosTransformText = function() ...@@ -854,7 +854,7 @@ CShape.prototype.checkPosTransformText = function()
}; };
CShape.prototype.getNearestPos = function(x, y, pageIndex) CShape.prototype.getNearestPos = function(x, y, pageIndex)
{ {
if(isRealObject(this.textBoxContent)) if(isRealObject(this.textBoxContent) && this.invertTransformText)
{ {
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);
...@@ -883,7 +883,7 @@ CShape.prototype.cursorGetPos = function() ...@@ -883,7 +883,7 @@ CShape.prototype.cursorGetPos = function()
CShape.prototype.cursorMoveAt = function( X, Y, AddToSelect ) CShape.prototype.cursorMoveAt = function( X, Y, AddToSelect )
{ {
var content = this.getDocContent(); var content = this.getDocContent();
if(isRealObject(content)) if(isRealObject(content) && this.invertTransformText)
{ {
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);
......
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