Skip to content
Snippets Groups Projects
Commit 89bedc18 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

Ensure minimum thickness is 0

parent 632be170
No related branches found
No related tags found
No related merge requests found
......@@ -14,11 +14,11 @@ public class SettableColorLineBorder extends LineBorder {
private static final long serialVersionUID = -954792311453371930L;
public SettableColorLineBorder(Color color, int thickness, boolean roundedCorners) {
super(color == null ? Color.BLACK : color, thickness, roundedCorners);
super(color == null ? Color.BLACK : color, thickness < 0 ? 0 : thickness, roundedCorners);
}
public SettableColorLineBorder(Color color, int thickness) {
super(color == null ? Color.BLACK : color, thickness);
super(color == null ? Color.BLACK : color, thickness < 0 ? 0 : thickness);
}
public SettableColorLineBorder(Color color) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment