nextTabStop in PlainView was adding the tab size (in characters) to the
width of 'm' (in pixels). This should have been a multiplication.
Fixed.
2005-10-14 Anthony Balkissoon <[EMAIL PROTECTED]>
* javax/swing/text/PlainView.java:
(nextTabStop): Tab size should be multiplied by the width of 'm', not
added to it.
--Tony
Index: javax/swing/text/PlainView.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/PlainView.java,v
retrieving revision 1.25
diff -u -r1.25 PlainView.java
--- javax/swing/text/PlainView.java 14 Oct 2005 19:41:57 -0000 1.25
+++ javax/swing/text/PlainView.java 14 Oct 2005 19:51:55 -0000
@@ -227,6 +227,6 @@
*/
public float nextTabStop(float x, int tabStop)
{
- float tabSizePixels = getTabSize() + metrics.charWidth('m');
+ float tabSizePixels = getTabSize() * metrics.charWidth('m');
return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels;
}
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches