mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/546
This commit is contained in:
@ -66,7 +66,19 @@ namespace DocFileFormat
|
||||
if (structureLength > 0)
|
||||
{
|
||||
// this PLEX contains CPs and Elements
|
||||
n = ((int)lcb - CP_LENGTH) / (structureLength + CP_LENGTH);
|
||||
//n = ((int)lcb - CP_LENGTH) / (structureLength + CP_LENGTH);
|
||||
int totalSize = (int)lcb - CP_LENGTH;
|
||||
int elementSize = structureLength + CP_LENGTH;
|
||||
|
||||
if (elementSize > 0)
|
||||
{
|
||||
n = totalSize / elementSize;
|
||||
|
||||
if (totalSize % elementSize != 0)
|
||||
{
|
||||
n += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user