Skip to content

Commit

Permalink
Fix bug #72924
Browse files Browse the repository at this point in the history
Fix crash on some action with permission range
  • Loading branch information
KirillovIlya committed Jan 29, 2025
1 parent be57dfb commit 47a4452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions word/Editor/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13705,9 +13705,9 @@ CDocument.prototype._checkPermRangeForCurrentSelection = function()
CDocument.prototype._checkPermRangeForElement = function(element)
{
if (!element
&& !(element instanceof AscWord.Paragraph)
&& !(element instanceof AscWord.Table)
&& !(element instanceof AscWord.BlockLevelSdt))
|| (!(element instanceof AscWord.Paragraph)
&& !(element instanceof AscWord.Table)
&& !(element instanceof AscWord.BlockLevelSdt)))
return false;

return element.isWholeElementInPermRange();
Expand Down

0 comments on commit 47a4452

Please sign in to comment.