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

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

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

revision 1.10 by rabbit78, Thu Nov 3 14:09:22 2005 UTC revision 1.11 by rabbit78, Tue Nov 8 21:19:32 2005 UTC
# Line 221  public abstract class CompositeView Line 221  public abstract class CompositeView
221      if (childIndex != -1)      if (childIndex != -1)
222        {        {
223          View child = getView(childIndex);          View child = getView(childIndex);
224          Shape result = child.modelToView(pos, a, bias);          Rectangle r = a.getBounds();
225            childAllocation(childIndex, r);
226            Shape result = child.modelToView(pos, r, bias);
227          if (result == null)          if (result == null)
228            throw new AssertionError("" + child.getClass().getName()            throw new AssertionError("" + child.getClass().getName()
229                                     + ".modelToView() must not return null");                                     + ".modelToView() must not return null");
230          return result;          return result;
231        }        }
232      else      else
233        {        throw new BadLocationException("No child view for the specified location",
234          // FIXME: Handle the case when we have no child view for the given                                       pos);
         // position.  
         throw new AssertionError("No child views found where child views are "  
                                  + "expected. pos = " + pos + ", bias = "  
                                  + bias);  
       }  
235    }    }
236    
237    /**    /**

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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