RED-5917: Wrong value set for Signature and Logo after Resize
This commit is contained in:
parent
3c79e65345
commit
41282c0edd
@ -334,8 +334,9 @@ public class RedactionLogMergeService {
|
|||||||
if (manualResizeRedact.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (manualResizeRedact.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||||
redactionLogEntry.setColor(getColor(redactionLogEntry.getType(), colors, false, redactionLogEntry.isRedacted(), false, types));
|
redactionLogEntry.setColor(getColor(redactionLogEntry.getType(), colors, false, redactionLogEntry.isRedacted(), false, types));
|
||||||
redactionLogEntry.setPositions(convertPositions(manualResizeRedact.getPositions()));
|
redactionLogEntry.setPositions(convertPositions(manualResizeRedact.getPositions()));
|
||||||
redactionLogEntry.setValue(manualResizeRedact.getValue());
|
if (!"signature".equalsIgnoreCase(redactionLogEntry.getType()) && !"logo".equalsIgnoreCase(redactionLogEntry.getType())) {
|
||||||
|
redactionLogEntry.setValue(manualResizeRedact.getValue());
|
||||||
|
}
|
||||||
// This is for backwards compatibility, now the text after/before is calculated during reanalysis because we need to find dict entries on positions where entries are resized to smaller.
|
// This is for backwards compatibility, now the text after/before is calculated during reanalysis because we need to find dict entries on positions where entries are resized to smaller.
|
||||||
if (manualResizeRedact.getTextBefore() != null || manualResizeRedact.getTextAfter() != null) {
|
if (manualResizeRedact.getTextBefore() != null || manualResizeRedact.getTextAfter() != null) {
|
||||||
redactionLogEntry.setTextBefore(manualResizeRedact.getTextBefore());
|
redactionLogEntry.setTextBefore(manualResizeRedact.getTextBefore());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user