jeremias 2004/09/23 07:43:59 Modified: src/java/org/apache/fop/render/rtf/rtflib/rtfdoc RtfListItem.java Log: Fix NPE Revision Changes Path 1.5 +10 -4 xml-fop/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java Index: RtfListItem.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- RtfListItem.java 27 Feb 2004 17:54:01 -0000 1.4 +++ RtfListItem.java 23 Sep 2004 14:43:59 -0000 1.5 @@ -28,6 +28,7 @@ import java.io.Writer; import java.io.IOException; + import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun; /** Model of an RTF list item, which can contain RTF paragraphs @@ -54,11 +55,12 @@ protected void writeRtfPrefix() throws IOException { super.writeRtfPrefix(); - listStyle.writeParagraphPrefix(this); + getRtfListStyle().writeParagraphPrefix(this); } - } + } public class RtfListItemLabel extends RtfTextrun implements IRtfTextrunContainer { + private RtfListItem rtfListItem; public RtfListItemLabel(RtfListItem item) throws IOException { @@ -199,7 +201,11 @@ return listStyle; } } - + + /** + * Get the parent list. + * @return the parent list + */ public RtfList getParentList() { return parentList; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]