/[classpath]/classpath/javax/swing/text/GlyphView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/GlyphView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.5 by gnu_andrew, Wed Nov 2 00:44:03 2005 UTC revision 1.2.2.6 by gnu_andrew, Sun Nov 27 21:00:42 2005 UTC
# Line 457  public class GlyphView extends View impl Line 457  public class GlyphView extends View impl
457                             Bias[] biasRet)                             Bias[] biasRet)
458      {      {
459        Rectangle b = a.getBounds();        Rectangle b = a.getBounds();
       assert b.contains(x, y) : "The coordinates are expected to be within the "  
                                 + "view's bounds: x=" + x + ", y=" + y  
                                 + "a=" + a;  
460        int pos = getBoundedPosition(v, v.getStartOffset(), b.x, x - b.x);        int pos = getBoundedPosition(v, v.getStartOffset(), b.x, x - b.x);
461        return pos;        return pos;
462      }      }

Legend:
Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26