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

баг с треком текста

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51921 954022d7-b5bf-4e40-9824-e11837661b57
parent 141d92dc
......@@ -1796,6 +1796,7 @@ function CDrawingDocument()
this.InlineTextTrackEnabled = false;
this.InlineTextTrack = null;
this.InlineTextTrackPage = -1;
this.AutoShapesTrack = null;
this.AutoShapesTrackLockPageNum = -1;
......@@ -5241,6 +5242,7 @@ function CDrawingDocument()
if (this.InlineTextTrackEnabled)
{
this.InlineTextTrack = oWordControl.m_oLogicDocument.Get_NearestPos(pos.Page, pos.X, pos.Y);
this.InlineTextTrackPage = pos.Page;
oWordControl.ShowOverlay();
oWordControl.OnUpdateOverlay();
......@@ -5347,6 +5349,7 @@ function CDrawingDocument()
if (this.InlineTextTrackEnabled)
{
this.InlineTextTrack = oWordControl.m_oLogicDocument.Get_NearestPos(pos.Page, pos.X, pos.Y);
this.InlineTextTrackPage = pos.Page;
this.EndTrackText();
oWordControl.ShowOverlay();
......@@ -5639,6 +5642,7 @@ function CDrawingDocument()
{
this.InlineTextTrackEnabled = true;
this.InlineTextTrack = null;
this.InlineTextTrackPage = -1;
}
this.EndTrackText = function()
{
......@@ -5646,6 +5650,7 @@ function CDrawingDocument()
this.m_oWordControl.m_oLogicDocument.On_DragTextEnd(this.InlineTextTrack, global_keyboardEvent.CtrlKey);
this.InlineTextTrack = null;
this.InlineTextTrackPage = -1;
}
}
......
......@@ -2797,7 +2797,14 @@ function CEditorPage(api)
if (drDoc.InlineTextTrackEnabled && null != drDoc.InlineTextTrack)
{
var _oldPage = drDoc.AutoShapesTrack.PageIndex;
var _oldCurPageInfo = drDoc.AutoShapesTrack.CurrentPageInfo;
drDoc.AutoShapesTrack.PageIndex = drDoc.InlineTextTrackPage;
drDoc.AutoShapesTrack.DrawInlineMoveCursor(drDoc.InlineTextTrack.X, drDoc.InlineTextTrack.Y, drDoc.InlineTextTrack.Height, drDoc.InlineTextTrack.transform);
drDoc.AutoShapesTrack.PageIndex = _oldPage;
drDoc.AutoShapesTrack.CurrentPageInfo = _oldCurPageInfo;
}
drDoc.DrawHorVerAnchor();
......
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