You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by sa...@apache.org on 2004/04/08 13:51:11 UTC

cvs commit: jakarta-poi/src/scratchpad/examples/src/org/apache/poi/hwpf Word2Forrest.java

sackley     2004/04/08 04:51:11

  Modified:    src/scratchpad/examples/src/org/apache/poi/hwpf
                        Word2Forrest.java
  Log:
  patch and latest bug fixes
  
  Revision  Changes    Path
  1.2       +1 -2      jakarta-poi/src/scratchpad/examples/src/org/apache/poi/hwpf/Word2Forrest.java
  
  Index: Word2Forrest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/scratchpad/examples/src/org/apache/poi/hwpf/Word2Forrest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Word2Forrest.java	10 Mar 2004 04:18:47 -0000	1.1
  +++ Word2Forrest.java	8 Apr 2004 11:51:11 -0000	1.2
  @@ -69,8 +69,7 @@
         {
           int cruns = p.numCharacterRuns ();
           CharacterRun run = p.getCharacterRun (0);
  -        int ftcAscii = run.getFontNameIndex ();
  -        String fontName = doc.getFontTable().getMainFont(ftcAscii);
  +        String fontName = run.getFontName();
           if (fontName.startsWith ("Courier"))
           {
             if (!inCode)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org