Applied the pertinent patch for bug #21439 by Paul Pound to get the header/footer from the sheet and not a chart.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
28d24b7126
commit
976db97d3c
@ -249,15 +249,15 @@ public class Sheet implements Model
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user