diff options
author | mcherkas <none@none> | 2013-08-06 17:29:54 +0400 |
---|---|---|
committer | mcherkas <none@none> | 2013-08-06 17:29:54 +0400 |
commit | 733907101862886ccb03b33f5a26fda4343e7812 (patch) | |
tree | 1ddf505925c83cdd2fc5729f780f3948282dfe35 /src/share/classes/javax/swing/text | |
parent | 9bb4ddfb4a781fccce3512d0959405a853520ea6 (diff) |
8016833: Underlines and strikethrough not rendering correctly
Reviewed-by: alexsch, serb
Contributed-by: anton.nashatyrev@oracle.com
Diffstat (limited to 'src/share/classes/javax/swing/text')
-rw-r--r-- | src/share/classes/javax/swing/text/GlyphView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/classes/javax/swing/text/GlyphView.java b/src/share/classes/javax/swing/text/GlyphView.java index 624f737b3..a0ca975c2 100644 --- a/src/share/classes/javax/swing/text/GlyphView.java +++ b/src/share/classes/javax/swing/text/GlyphView.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -514,7 +514,7 @@ public class GlyphView extends View implements TabableView, Cloneable { int x1 = x0 + (int) painter.getSpan(this, p0, p1, getTabExpander(), x0); // calculate y coordinate - int y = alloc.y + alloc.height - (int) painter.getDescent(this); + int y = alloc.y + (int)(painter.getHeight(this) - painter.getDescent(this)); if (underline) { int yTmp = y + 1; g.drawLine(x0, yTmp, x1, yTmp); |