Changeset 376


Ignore:
Timestamp:
05/19/08 06:47:20 (4 years ago)
Author:
jharrop
Message:

Word 2007 complains the document is corrupt if you use an @pid="1". So start with 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/docProps/custom/Properties.java

    r347 r376  
    147147    public int getNextId() { 
    148148         
    149         int id = 1; 
     149        int id = 2;  // Lowest number Word 2007 seems to like is 2 (!) 
    150150         
    151151        for( Property prop : getProperty() ) { 
    152152                 
    153                 if (prop.getPid() > id ) { 
     153                if (prop.getPid() >= id ) { 
    154154                        id = prop.getPid() + 1; 
    155155                } 
Note: See TracChangeset for help on using the changeset viewer.