[cp-patches] FYI: Fix typo in css/Selector.java

Mark Wielaard mark at klomp.org
Sat Nov 25 18:12:20 UTC 2006


Hi,

This fixes a small typo I found in css/Selector.java as discussed with
Roman on irc.

2006-11-25  Mark Wielaard  <mark at klomp.org>

    * gnu/javax/swing/text/html/css/Selector.java (calculateSpecificity):
    Use clazzIndex for id substring.

This helped with rendering planet.gnome.org a little better.

Committed,

Mark

diff -u -r1.1 Selector.java
--- gnu/javax/swing/text/html/css/Selector.java 9 Nov 2006 16:31:30 -0000      1.1
+++ gnu/javax/swing/text/html/css/Selector.java 25 Nov 2006 18:11:37 -0000
@@ -214,7 +214,7 @@
           {
             b++;
             id = sel.substring(idIndex + 1,
-                               clazzIndex > 0 ? Math.min(idIndex, sel.length())
+                               clazzIndex > 0 ? Math.min(clazzIndex, sel.length())
                                               : sel.length());
           }
         String tag = sel.substring(0,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061125/acfdb4dd/attachment.pgp


More information about the Classpath-patches mailing list