DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17445>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17445

[PATCH] Keep current formats when adding a new one

           Summary: [PATCH] Keep current formats when adding a new one
           Product: POI
           Version: 2.0-dev
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When HSSFDataFormat.getFormat need to add an entry in the "formats" table and
that "!movedBuiltins", it will first move the content of the "builtinFormats"
table to "formats". It does this with a (line 272):

                formats.add( ind, i.next() );

This will move the entries that are already there in "formats". Instead, I
changed that to:

                formats.set( ind, i.next() );

This solves the problem I was experimenting. Just let me know if you need any
additional information.

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

Reply via email to