Merge branch 'RED-8274' into 'master'
RED-8274 - Resize redaction in header leads to error state Closes RED-8274 See merge request redactmanager/redaction-service!250
This commit is contained in:
commit
192fb96552
@ -100,7 +100,9 @@ public class ManualChangesApplicationService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// need to reinsert the entity, due to the boundary having changed.
|
// need to reinsert the entity, due to the boundary having changed.
|
||||||
|
if (newStartOffset > -1) {
|
||||||
removeAndUpdateAndReInsertEntity(entityToBeResized, manualResizeRedaction, newStartOffset);
|
removeAndUpdateAndReInsertEntity(entityToBeResized, manualResizeRedaction, newStartOffset);
|
||||||
|
}
|
||||||
entityToBeResized.getManualOverwrite().addChange(manualResizeRedaction);
|
entityToBeResized.getManualOverwrite().addChange(manualResizeRedaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,10 +142,9 @@ public class ManualChangesApplicationService {
|
|||||||
entityToBeResized.setPages(new HashSet<>());
|
entityToBeResized.setPages(new HashSet<>());
|
||||||
entityToBeResized.getTextRange().setStart(newStartOffset);
|
entityToBeResized.getTextRange().setStart(newStartOffset);
|
||||||
entityToBeResized.getTextRange().setEnd(newStartOffset + manualResizeRedaction.getValue().length());
|
entityToBeResized.getTextRange().setEnd(newStartOffset + manualResizeRedaction.getValue().length());
|
||||||
if (newStartOffset > -1) {
|
|
||||||
entityCreationService.addEntityToGraph(entityToBeResized, nodeToInsertInto);
|
entityCreationService.addEntityToGraph(entityToBeResized, nodeToInsertInto);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void resizeImage(Image image, ManualResizeRedaction manualResizeRedaction) {
|
public void resizeImage(Image image, ManualResizeRedaction manualResizeRedaction) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user