slaubach    2003/07/09 13:20:22

  Modified:    src/java/org/apache/poi/hssf/model Sheet.java
  Log:
  Applied the pertinent patch for bug #21439 by Paul Pound to get the header/footer 
from the sheet and not a chart.
  
  Revision  Changes    Path
  1.35      +3 -3      jakarta-poi/src/java/org/apache/poi/hssf/model/Sheet.java
  
  Index: Sheet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/model/Sheet.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Sheet.java        27 Jun 2003 23:13:29 -0000      1.34
  +++ Sheet.java        9 Jul 2003 20:20:22 -0000       1.35
  @@ -249,15 +249,15 @@
               {
                   retval.printGridlines = (PrintGridlinesRecord) rec;
               }
  -            else if ( rec.getSid() == HeaderRecord.sid )
  +            else if ( rec.getSid() == HeaderRecord.sid && bofEofNestingLevel == 1)
               {
                   retval.header = (HeaderRecord) rec;
               }
  -            else if ( rec.getSid() == FooterRecord.sid )
  +            else if ( rec.getSid() == FooterRecord.sid && bofEofNestingLevel == 1)
               {
                   retval.footer = (FooterRecord) rec;
               }
  -            else if ( rec.getSid() == PrintSetupRecord.sid )
  +            else if ( rec.getSid() == PrintSetupRecord.sid && bofEofNestingLevel == 
1)
               {
                   retval.printSetup = (PrintSetupRecord) rec;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to