Fix bug 42608

This commit is contained in:
Oleg Korshul
2019-09-17 11:03:34 +03:00
parent cf07005314
commit d9f1ebdc76
2 changed files with 20 additions and 0 deletions

View File

@ -580,6 +580,7 @@
this.tmpTextArtDiv = null;
this.tmpViewRulers = null;
this.tmpZoomType = null;
this.tmpDocumentUnits = null;
this.DocumentUrl = "";
this.bNoSendComments = false;
@ -5460,6 +5461,10 @@ background-repeat: no-repeat;\
this.WordControl.UpdateHorRulerBack(true);
this.WordControl.UpdateVerRulerBack(true);
}
else
{
this.tmpDocumentUnits = _units;
}
};
asc_docs_api.prototype.GoToHeader = function(pageNumber)
@ -7008,6 +7013,11 @@ background-repeat: no-repeat;\
break;
}
}
if (null != this.tmpDocumentUnits)
{
this.asc_SetDocumentUnits(this.tmpDocumentUnits);
this.tmpDocumentUnits = null;
}
this.asc_setViewMode(this.isViewMode);

View File

@ -793,6 +793,7 @@
this.tmpCoMarksDraw = false;
this.tmpViewRulers = null;
this.tmpZoomType = null;
this.tmpDocumentUnits = null;
// это чтобы сразу показать ридер, без возможности вернуться в редактор/вьюер
this.isOnlyReaderMode = false;
@ -7037,6 +7038,10 @@ background-repeat: no-repeat;\
this.WordControl.UpdateHorRulerBack(true);
this.WordControl.UpdateVerRulerBack(true);
}
else
{
this.tmpDocumentUnits = _units;
}
};
asc_docs_api.prototype.GoToHeader = function(pageNumber)
@ -7844,6 +7849,11 @@ background-repeat: no-repeat;\
break;
}
}
if (null != this.tmpDocumentUnits)
{
this.asc_SetDocumentUnits(this.tmpDocumentUnits);
this.tmpDocumentUnits = null;
}
this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);