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

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

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

revision 1.28 by mark, Sun Oct 30 18:02:53 2005 UTC revision 1.29 by mark, Sun Oct 30 22:03:50 2005 UTC
# Line 148  public class PlainView extends View impl Line 148  public class PlainView extends View impl
148        }        }
149      catch (BadLocationException e)      catch (BadLocationException e)
150        {        {
151          // This should never happen.          AssertionError ae = new AssertionError("Unexpected bad location");
152            ae.initCause(e);
153            throw ae;
154        }        }
155    }    }
156    
# Line 251  public class PlainView extends View impl Line 253  public class PlainView extends View impl
253          int end = child.getEndOffset();          int end = child.getEndOffset();
254          try          try
255            {            {
256              el.getDocument().getText(start, start + end, seg);              el.getDocument().getText(start, end - start, seg);
257            }            }
258          catch (BadLocationException ex)          catch (BadLocationException ex)
259            {            {
# Line 332  public class PlainView extends View impl Line 334  public class PlainView extends View impl
334      }      }
335      catch (BadLocationException ble)      catch (BadLocationException ble)
336      {      {
337        //this should never happen        AssertionError ae = new AssertionError("Unexpected bad location");
338          ae.initCause(ble);
339          throw ae;
340      }      }
341            
342      int pos = Utilities.getTabbedTextOffset(s, metrics, rec.x, (int)x, this, start);      int pos = Utilities.getTabbedTextOffset(s, metrics, rec.x, (int)x, this, start);

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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