Commit b3cdb4e1 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с выставлением обтекания у буквицы (баг 24856). Исправлен баг с...

Исправлен баг с выставлением обтекания у буквицы (баг 24856). Исправлен баг с потерей фокуса при перетаскивании автофигур (баг 24193). 

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56783 954022d7-b5bf-4e40-9824-e11837661b57
parent babd7c7b
...@@ -3859,6 +3859,8 @@ CDocumentContent.prototype = ...@@ -3859,6 +3859,8 @@ CDocumentContent.prototype =
if ( -1 === DstIndex ) if ( -1 === DstIndex )
return; return;
var bNeedSelect = true;
var FirstElement = SelectedContent.Elements[0]; var FirstElement = SelectedContent.Elements[0];
if ( 1 === ElementsCount && true !== FirstElement.SelectedAll && type_Paragraph === FirstElement.Element.GetType() ) if ( 1 === ElementsCount && true !== FirstElement.SelectedAll && type_Paragraph === FirstElement.Element.GetType() )
{ {
...@@ -3882,7 +3884,7 @@ CDocumentContent.prototype = ...@@ -3882,7 +3884,7 @@ CDocumentContent.prototype =
// TODO: Заглушка для переноса автофигур и картинок. Когда разрулим ситуацию так, чтобы когда у нас // TODO: Заглушка для переноса автофигур и картинок. Когда разрулим ситуацию так, чтобы когда у нас
// в текста была выделена автофигура выделение шло для автофигур, тогда здесь можно будет убрать. // в текста была выделена автофигура выделение шло для автофигур, тогда здесь можно будет убрать.
var bNeedSelect = (docpostype_DrawingObjects !== this.CurPos.Type && ( null === this.LogicDocument || docpostype_DrawingObjects !== this.LogicDocument.CurPos.Type ) ? true : false); bNeedSelect = (docpostype_DrawingObjects !== this.CurPos.Type && ( null === this.LogicDocument || docpostype_DrawingObjects !== this.LogicDocument.CurPos.Type ) ? true : false);
for ( var Index = 0; Index < NewElementsCount; Index++ ) for ( var Index = 0; Index < NewElementsCount; Index++ )
{ {
...@@ -3999,6 +4001,7 @@ CDocumentContent.prototype = ...@@ -3999,6 +4001,7 @@ CDocumentContent.prototype =
this.Selection.EndPos = DstIndex + ElementsCount - 1; this.Selection.EndPos = DstIndex + ElementsCount - 1;
} }
if ( true === bNeedSelect )
this.Parent.Set_CurrentElement(false, this.Get_StartPage_Absolute()); this.Parent.Set_CurrentElement(false, this.Get_StartPage_Absolute());
}, },
......
...@@ -9312,10 +9312,12 @@ Paragraph.prototype = ...@@ -9312,10 +9312,12 @@ Paragraph.prototype =
if ( undefined !== FramePr.Wrap ) if ( undefined !== FramePr.Wrap )
{ {
if ( true !== FramePr.Wrap ) if ( false === FramePr.Wrap )
NewFramePr.Wrap = wrap_NotBeside; NewFramePr.Wrap = wrap_NotBeside;
else else if ( true === FramePr.Wrap )
NewFramePr.Wrap = wrap_Around; NewFramePr.Wrap = wrap_Around;
else
NewFramePr.Wrap = FramePr.Wrap;
} }
this.Pr.FramePr = NewFramePr; this.Pr.FramePr = NewFramePr;
......
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