mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[de] Fix lock check
This commit is contained in:
committed by
Ilya Kirillov
parent
be09d1bed8
commit
004598a7a3
@ -1716,17 +1716,21 @@ CHistory.prototype.private_PostProcessingRecalcData = function()
|
||||
}
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Проверяем лок для последних нескольких точек
|
||||
* @param pointCount
|
||||
*/
|
||||
CHistory.prototype.checkLock = function(pointCount)
|
||||
{
|
||||
if (!pointCount)
|
||||
if (!pointCount || pointCount > this.Index || -1 === this.Index)
|
||||
return;
|
||||
|
||||
for (let pointIndex = 0; pointIndex < pointCount; ++pointIndex)
|
||||
{
|
||||
let point = this.Points[pointIndex].Items;
|
||||
let point = this.Points[this.Index - pointIndex];
|
||||
for (let changeIndex = 0; changeIndex < point.Items.length; ++changeIndex)
|
||||
{
|
||||
point.Items[changeIndex].CheckLock();
|
||||
point.Items[changeIndex].Data.CheckLock();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -9577,6 +9577,7 @@ background-repeat: no-repeat;\
|
||||
{
|
||||
let logicDocument = this.getLogicDocument();
|
||||
logicDocument.Recalculate();
|
||||
logicDocument.CheckActionLock();
|
||||
logicDocument.FinalizeAction();
|
||||
};
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user