Commit ebaa5b52 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 0b89449f
...@@ -226062,31 +226062,10 @@ CDocument.prototype = ...@@ -226062,31 +226062,10 @@ CDocument.prototype =
if ( null !== CurPara ) if ( null !== CurPara )
{ {
var MouseEvent = new CMouseEventHandler(); this.Cursor_MoveLeft(true, false);
this.Selection.Start = false;
MouseEvent.ClickCount = 1;
MouseEvent.Type = g_mouse_event_type_down;
var OldX = CurPara.CurPos.X;
var OldY = CurPara.CurPos.Y;
var DrawMatrix = CurPara.Get_ParentTextTransform();
if (DrawMatrix)
{
var _OldX = DrawMatrix.TransformPointX(OldX, OldY);
var _OldY = DrawMatrix.TransformPointY(OldX, OldY);
OldX = _OldX;
OldY = _OldY;
}
this.CurPage = CurPara.Get_StartPage_Absolute() + CurPara.CurPos.PagesPos;
this.Selection_SetStart( OldX, OldY, MouseEvent );
this.CurPage = PageIndex;
this.Selection_SetEnd( X, Y, e ); this.Selection_SetEnd( X, Y, e );
this.Document_UpdateSelectionState();
return; return;
} }
} }
...@@ -237677,7 +237656,7 @@ CDocumentContent.prototype = ...@@ -237677,7 +237656,7 @@ CDocumentContent.prototype =
if ( true === SelectionUse_old && true === MouseEvent.ShiftKey && true === bOldSelectionIsCommon ) if ( true === SelectionUse_old && true === MouseEvent.ShiftKey && true === bOldSelectionIsCommon )
{ {
this.Selection_SetEnd( X, Y, {Type : g_mouse_event_type_up, ClickCount : 1} ); this.Selection_SetEnd( X, Y, this.CurPage + this.StartPage, {Type : g_mouse_event_type_up, ClickCount : 1} );
this.Selection.Use = true; this.Selection.Use = true;
this.Selection.Start = true; this.Selection.Start = true;
this.Selection.EndPos = ContentPos; this.Selection.EndPos = ContentPos;
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