[de] Fix lock check

This commit is contained in:
KirillovIlya
2024-03-04 16:35:54 +03:00
committed by Ilya Kirillov
parent be09d1bed8
commit 004598a7a3
2 changed files with 8 additions and 3 deletions

View File

@ -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();
}
}
};

View File

@ -9577,6 +9577,7 @@ background-repeat: no-repeat;\
{
let logicDocument = this.getLogicDocument();
logicDocument.Recalculate();
logicDocument.CheckActionLock();
logicDocument.FinalizeAction();
};
//----------------------------------------------------------------------------------------------------------------------