Commit f48305a4 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fixed select bag

parent 5880c0cd
......@@ -3768,9 +3768,9 @@ CShape.prototype.selectionSetStart = function (e, x, y, slideIndex)
}
}
if(!(content.Is_TextSelectionUse() && e.ShiftKey))
content.Selection_SetStart(tx, ty, slideIndex, e);
content.Selection_SetStart(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
else
content.Selection_SetEnd(tx, ty, slideIndex, e);
content.Selection_SetEnd(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
}
};
......@@ -3783,7 +3783,7 @@ CShape.prototype.selectionSetEnd = function (e, x, y, slideIndex)
ty = this.invertTransformText.TransformPointY(x, y);
if(!(e.Type === AscCommon.g_mouse_event_type_up && this.rightButtonFlag))
{
content.Selection_SetEnd(tx, ty, slideIndex, e);
content.Selection_SetEnd(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
}
}
delete this.rightButtonFlag;
......
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