8041917: unexcepted behavior of LineBorder while using Boolean variable true
Reviewed-by: alexsch, serb
This commit is contained in:
parent
b8cc933de8
commit
e787680bf1
@ -134,8 +134,8 @@ public class LineBorder extends AbstractBorder
|
||||
int offs = this.thickness;
|
||||
int size = offs + offs;
|
||||
if (this.roundedCorners) {
|
||||
int arc = offs + size;
|
||||
outer = new RoundRectangle2D.Float(x, y, width, height, arc, arc);
|
||||
float arc = .2f * offs;
|
||||
outer = new RoundRectangle2D.Float(x, y, width, height, offs, offs);
|
||||
inner = new RoundRectangle2D.Float(x + offs, y + offs, width - size, height - size, arc, arc);
|
||||
}
|
||||
else {
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 4252164
|
||||
* @bug 4252164 8041917
|
||||
* @summary Tests rounded LineBorder for components
|
||||
* @author Sergey Malenkov
|
||||
* @run applet/manual=yesno Test4252164.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user