RED-9548 - Actions results in wrong results for deadlocked annotation

This commit is contained in:
Corina Olariu 2024-09-06 14:43:57 +02:00 committed by Kilian Schüttler
parent 03e321a824
commit 3c3c029cf4

View File

@ -2123,6 +2123,18 @@ rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
end
rule "X.11.1: Remove non manual entity which are equal to manual entity"
salience 70
when
$manualEntity: TextEntity(engines contains Engine.MANUAL, active(), $type: type())
$nonManualEntity: TextEntity(getTextRange().equals($manualEntity.getTextRange()), type() == $type, entityType == EntityType.ENTITY, !hasManualChanges(), engines not contains Engine.MANUAL)
then
$manualEntity.addEngines($nonManualEntity.getEngines());
$nonManualEntity.remove("X.11.1", "remove non manual entity which are equal to manual entity");
retract($nonManualEntity);
end
//------------------------------------ Dictionary merging rules ------------------------------------
// Rule unit: DICT.0