Skip to content

Commit

Permalink
Fixed further bugs in Run in setting position
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezrafla committed Apr 3, 2020
1 parent 10f31a0 commit 2a42c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LOCATION=/var/www/onlyoffice/documentserver/
cd build
if [ -z "$NOBUILD" ]
then
export PRODUCT_VERSION="15.5.0"
export BUILD_NUMBER="111"
export PUBLISHER_URL="https://www.zegenie.com"
if [ -z "$PRODUCTION" ]
then
grunt --level=WHITESPACE_ONLY --formatting=PRETTY_PRINT
Expand Down
6 changes: 3 additions & 3 deletions word/Editor/Run.js
Original file line number Diff line number Diff line change
Expand Up @@ -7128,15 +7128,15 @@ ParaRun.prototype.SetContentSelection = function(StartDocPos, EndDocPos, Depth,
{
case 1: StartPos = 0; break;
case -1: StartPos = this.DisplayContent.length; break;
case 0: StartPos = StartDocPos[Depth].Position; break;
case 0: StartPos = StartDocPos[Depth] ? StartDocPos[Depth].Position : 0; break;
}

var EndPos = 0;
switch (EndFlag)
{
case 1: EndPos = 0; break;
case -1: EndPos = this.DisplayContent.length; break;
case 0: EndPos = EndDocPos[Depth].Position; break;
case 0: EndPos = EndDocPos[Depth] ? EndDocPos[Depth].Position : 0; break;
}

var Selection = this.State.Selection;
Expand All @@ -7151,7 +7151,7 @@ ParaRun.prototype.SetContentPosition = function(DocPos, Depth, Flag)
{
case 1: Pos = 0; break;
case -1: Pos = this.DisplayContent.length; break;
case 0: Pos = DocPos[Depth].Position; break;
case 0: Pos = DocPos[Depth] ? DocPos[Depth].Position : 0; break;
}

var nLen = this.DisplayContent.length;
Expand Down

0 comments on commit 2a42c77

Please sign in to comment.