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