提交 09f6009f 编写于 作者: M malenkov

8041917: unexcepted behavior of LineBorder while using Boolean variable true

Reviewed-by: alexsch, serb
上级 3ffae3dd
...@@ -133,8 +133,8 @@ public class LineBorder extends AbstractBorder ...@@ -133,8 +133,8 @@ public class LineBorder extends AbstractBorder
int offs = this.thickness; int offs = this.thickness;
int size = offs + offs; int size = offs + offs;
if (this.roundedCorners) { if (this.roundedCorners) {
int arc = offs + size; float arc = .2f * offs;
outer = new RoundRectangle2D.Float(x, y, width, height, arc, arc); outer = new RoundRectangle2D.Float(x, y, width, height, offs, offs);
inner = new RoundRectangle2D.Float(x + offs, y + offs, width - size, height - size, arc, arc); inner = new RoundRectangle2D.Float(x + offs, y + offs, width - size, height - size, arc, arc);
} }
else { else {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 4252164 * @bug 4252164 8041917
* @summary Tests rounded LineBorder for components * @summary Tests rounded LineBorder for components
* @author Sergey Malenkov * @author Sergey Malenkov
* @run applet/manual=yesno Test4252164.html * @run applet/manual=yesno Test4252164.html
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册