You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Paul Krause <pk...@soundbite.com> on 2003/07/16 18:06:08 UTC

NamePtg's field_3_zero

Why does NamePtg have a third field?

    private short             field_3_zero;   // reserved must be 0

According to section 3.10.2 of http://sc.openoffice.org/excelfileformat.pdf, tName has only two fields, and that is what I see in my test spreadsheet as well.

Currently, I'm able to work around this by hacking getSize, but it doesn't seem right.

    public int getSize()
    {
        return (field_3_zero == 0) ? SIZE : SIZE - 2;
    }

What's the story behind field_3_zero?

PFK