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

Сделано, чтобы кнопки увеличения/уменьшения размера шрифта работали при...

Сделано, чтобы кнопки увеличения/уменьшения размера шрифта работали при выделении нумерации (баг 28268).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64675 954022d7-b5bf-4e40-9824-e11837661b57
parent 099326a7
...@@ -7152,14 +7152,21 @@ CDocument.prototype = ...@@ -7152,14 +7152,21 @@ CDocument.prototype =
this.ContentLastChangePos = StartPos; this.ContentLastChangePos = StartPos;
this.Recalculate(); this.Recalculate();
this.Document_UpdateSelectionState(); this.Document_UpdateSelectionState();
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
break;
return;
} }
case selectionflag_Numbering: case selectionflag_Numbering:
{ {
var OldFontSize = this.Get_Paragraph_TextPr().FontSize;
var NewFontSize = FontSize_IncreaseDecreaseValue(bIncrease, OldFontSize);
var TextPr = new CTextPr();
TextPr.FontSize = NewFontSize;
this.Paragraph_Add(new ParaTextPr(TextPr), true);
this.Recalculate();
this.Document_UpdateSelectionState();
this.Document_UpdateInterfaceState();
break; break;
} }
} }
......
...@@ -6502,11 +6502,17 @@ CDocumentContent.prototype = ...@@ -6502,11 +6502,17 @@ CDocumentContent.prototype =
this.ContentLastChangePos = StartPos; this.ContentLastChangePos = StartPos;
this.Recalculate(); this.Recalculate();
break;
return;
} }
case selectionflag_Numbering: case selectionflag_Numbering:
{ {
var OldFontSize = this.Get_Paragraph_TextPr().FontSize;
var NewFontSize = FontSize_IncreaseDecreaseValue(bIncrease, OldFontSize);
var TextPr = new CTextPr();
TextPr.FontSize = NewFontSize;
this.Paragraph_Add(new ParaTextPr(TextPr), true);
this.Recalculate();
break; break;
} }
} }
......
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