Pull request #168: Ignore failing Ruling expansion
Merge in RED/redaction-service from IgnoreFailedRulingExpansionOldVersion to release/2.8.x * commit '69f68273d187884cf5865026555151afaadcd71f': Ignore failing Ruling expansion
This commit is contained in:
commit
c8902ba972
@ -246,8 +246,12 @@ public class Ruling extends Line2D.Float {
|
||||
|
||||
public Ruling expand(float amount) {
|
||||
Ruling r = (Ruling) this.clone();
|
||||
r.setStart(this.getStart() - amount);
|
||||
r.setEnd(this.getEnd() + amount);
|
||||
try {
|
||||
r.setStart(this.getStart() - amount);
|
||||
r.setEnd(this.getEnd() + amount);
|
||||
} catch (UnsupportedOperationException e){
|
||||
log.warn("Could not expand ruling!");
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user