Commit b98698de authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлены баги с переносом автофигур между колонтитулами разных типов...

Исправлены баги с переносом автофигур между колонтитулами разных типов (even/odd/first). (баги 25671 reop, 26721).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64610 954022d7-b5bf-4e40-9824-e11837661b57
parent 82f215b2
...@@ -7487,26 +7487,29 @@ CDocumentContent.prototype = ...@@ -7487,26 +7487,29 @@ CDocumentContent.prototype =
// Если bEnd = true, тогда это конец селекта. // Если bEnd = true, тогда это конец селекта.
Selection_SetEnd : function(X, Y, PageIndex, MouseEvent) Selection_SetEnd : function(X, Y, PageIndex, MouseEvent)
{ {
if ( PageIndex - this.StartPage >= this.Pages.length ) if (docpostype_DrawingObjects === this.CurPos.Type)
return;
this.CurPage = PageIndex - this.StartPage;
if ( docpostype_DrawingObjects === this.CurPos.Type )
{ {
if ( g_mouse_event_type_up == MouseEvent.Type ) var CurPage = PageIndex - this.StartPage + this.Get_StartPage_Absolute();
if (this.Parent instanceof CHeaderFooter)
CurPage = PageIndex;
if (g_mouse_event_type_up == MouseEvent.Type)
{ {
this.LogicDocument.DrawingObjects.OnMouseUp( MouseEvent, X, Y, this.CurPage + this.Get_StartPage_Absolute() ); this.LogicDocument.DrawingObjects.OnMouseUp(MouseEvent, X, Y, CurPage);
this.Selection.Start = false; this.Selection.Start = false;
this.Selection.Use = true; this.Selection.Use = true;
} }
else else
{ {
this.LogicDocument.DrawingObjects.OnMouseMove( MouseEvent, X, Y, this.CurPage + this.Get_StartPage_Absolute() ); this.LogicDocument.DrawingObjects.OnMouseMove(MouseEvent, X, Y, CurPage);
} }
return; return;
} }
if (PageIndex - this.StartPage >= this.Pages.length)
return;
this.CurPage = PageIndex - this.StartPage;
if ( selectionflag_Numbering === this.Selection.Flag ) if ( selectionflag_Numbering === this.Selection.Flag )
return; return;
......
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