Commit 319e52ee authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with updating rulers.

parent 8dfea19e
...@@ -14622,6 +14622,8 @@ CDocument.prototype.controller_UpdateInterfaceState = function() ...@@ -14622,6 +14622,8 @@ CDocument.prototype.controller_UpdateInterfaceState = function()
}; };
CDocument.prototype.controller_UpdateRulersState = function() CDocument.prototype.controller_UpdateRulersState = function()
{ {
this.Document_UpdateRulersStateBySection();
if (true === this.Selection.Use) if (true === this.Selection.Use)
{ {
if (this.Selection.StartPos == this.Selection.EndPos && type_Paragraph !== this.Content[this.Selection.StartPos].GetType()) if (this.Selection.StartPos == this.Selection.EndPos && type_Paragraph !== this.Content[this.Selection.StartPos].GetType())
...@@ -14669,9 +14671,7 @@ CDocument.prototype.controller_UpdateRulersState = function() ...@@ -14669,9 +14671,7 @@ CDocument.prototype.controller_UpdateRulersState = function()
} }
} }
if (undefined === FramePr) if (undefined !== FramePr)
this.Document_UpdateRulersStateBySection();
else
this.Content[StartPos].Document_UpdateRulersState(); this.Content[StartPos].Document_UpdateRulersState();
} }
} }
......
...@@ -529,9 +529,9 @@ CBlockLevelSdt.prototype.Document_UpdateInterfaceState = function() ...@@ -529,9 +529,9 @@ CBlockLevelSdt.prototype.Document_UpdateInterfaceState = function()
{ {
this.Content.Document_UpdateInterfaceState(); this.Content.Document_UpdateInterfaceState();
}; };
CBlockLevelSdt.prototype.Document_UpdateRulersState = function() CBlockLevelSdt.prototype.Document_UpdateRulersState = function(CurPage)
{ {
this.Content.Document_UpdateRulersState(); this.Content.Document_UpdateRulersState(CurPage);
}; };
CBlockLevelSdt.prototype.GetTableProps = function() CBlockLevelSdt.prototype.GetTableProps = function()
{ {
......
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