[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Re: FYI: DefaultStyledDocument fixes
From: |
Lillian Angel |
Subject: |
[cp-patches] Re: FYI: DefaultStyledDocument fixes |
Date: |
Mon, 23 Jan 2006 09:51:33 -0500 |
Small fix to prevent an NPE.
2006-01-23 Lillian Angel <address@hidden>
* javax/swing/text/DefaultStyledDocument.java
(insertFracture): Set temp leaf's attributes to prevent an NPE.
On Mon, 2006-01-23 at 09:45 -0500, Lillian Angel wrote:
> I made some more changes to DefaultStyledDocument. More mauve tests pass
> now, but some still fail because we need to rework the fracturing
> functions (createFracture, insertFracture).
>
> The patch is messy because of formatting. Hopefully, the ChangeLog
> explains everything well enough.
>
> 2006-01-23 Lillian Angel <address@hidden>
>
> * javax/swing/text/DefaultStyledDocument.java:
> Formatted ElementBuffer and added new fields.
> (remove): Added check to determine if length is 0.
> (insertFirstContentTag): Initialized firstCreated to the
> element that is created by the first tag encountered. Removed
> check in JoinPreviousDirection case, no longer needed. In
> OriginateDirection case, added a loop to remove all old
> leafs that have been recreated.
> (insertContentTag): Cleaned up code. Removed checks that did
> not do anything.
> (insertFracture): Fixed up code, removed unneeded objects and
> checks. Added FIXME tags to the lines that need to be rewritten.
>
patch.diff
Description: Text Data