poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17445] New: - [PATCH] Keep current formats when adding a new one
Date Wed, 26 Feb 2003 18:34:05 GMT
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: poi-dev@jakarta.apache.org
        ReportedBy: avernet@scdi.org


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.

Mime
View raw message