Commit e8749c6d authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

bugs

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57966 954022d7-b5bf-4e40-9824-e11837661b57
parent dffb1e46
...@@ -200,26 +200,26 @@ ...@@ -200,26 +200,26 @@
case 1: case 1:
{ {
var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix; var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix;
pos = this.__DD_ConvertCoordsFromCursor(X - _w_pix, Y); pos = drDoc.__DD_ConvertCoordsFromCursor(X - _w_pix, Y);
break; break;
} }
case 2: case 2:
{ {
var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix; var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix;
var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix; var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix;
pos = this.__DD_ConvertCoordsFromCursor(X - _w_pix, Y - _h_pix); pos = drDoc.__DD_ConvertCoordsFromCursor(X - _w_pix, Y - _h_pix);
break; break;
} }
case 3: case 3:
{ {
var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix; var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix;
pos = this.__DD_ConvertCoordsFromCursor(X, Y - _h_pix); pos = drDoc.__DD_ConvertCoordsFromCursor(X, Y - _h_pix);
break; break;
} }
case 0: case 0:
default: default:
{ {
pos = this.__DD_ConvertCoordsFromCursor(X, Y); pos = drDoc.__DD_ConvertCoordsFromCursor(X, Y);
break; break;
} }
} }
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
if (true === this.IsChangeSmall) if (true === this.IsChangeSmall)
{ {
var _pos = this.__DD_ConvertCoordsFromCursor(X, Y); var _pos = drDoc.__DD_ConvertCoordsFromCursor(X, Y);
var _dist = 15 / _dKoef_mm_to_pix; var _dist = 15 / _dKoef_mm_to_pix;
if ((Math.abs(_pos.X - this.ChangeSmallPoint.X) < _dist) && (Math.abs(_pos.Y - this.ChangeSmallPoint.Y) < _dist) && (_pos.Page == this.ChangeSmallPoint.Page)) if ((Math.abs(_pos.X - this.ChangeSmallPoint.X) < _dist) && (Math.abs(_pos.Y - this.ChangeSmallPoint.Y) < _dist) && (_pos.Page == this.ChangeSmallPoint.Page))
{ {
...@@ -296,26 +296,26 @@ ...@@ -296,26 +296,26 @@
case 1: case 1:
{ {
var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix; var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix;
this.CurPos = this.__DD_ConvertCoordsFromCursor(X - _w_pix, Y); this.CurPos = drDoc.__DD_ConvertCoordsFromCursor(X - _w_pix, Y);
break; break;
} }
case 2: case 2:
{ {
var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix; var _w_pix = this.TableOutline.W * _dKoef_mm_to_pix;
var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix; var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix;
this.CurPos = this.__DD_ConvertCoordsFromCursor(X - _w_pix, Y - _h_pix); this.CurPos = drDoc.__DD_ConvertCoordsFromCursor(X - _w_pix, Y - _h_pix);
break; break;
} }
case 3: case 3:
{ {
var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix; var _h_pix = this.TableOutline.H * _dKoef_mm_to_pix;
this.CurPos = this.__DD_ConvertCoordsFromCursor(X, Y - _h_pix); this.CurPos = drDoc.__DD_ConvertCoordsFromCursor(X, Y - _h_pix);
break; break;
} }
case 0: case 0:
default: default:
{ {
this.CurPos = this.__DD_ConvertCoordsFromCursor(X, Y); this.CurPos = drDoc.__DD_ConvertCoordsFromCursor(X, Y);
break; break;
} }
} }
......
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