]> source.dussan.org Git - poi.git/commitdiff
Fix to 24519. getCustomPalette now works on the head with a newly created workbook
authorJason Height <jheight@apache.org>
Sun, 9 Nov 2003 21:15:51 +0000 (21:15 +0000)
committerJason Height <jheight@apache.org>
Sun, 9 Nov 2003 21:15:51 +0000 (21:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353441 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/model/Workbook.java

index 2ef73c2f92c85811e18854dcfdd07010609a69d2..e3593414c6913441404ec5318bcf20e0ccb32ce9 100644 (file)
@@ -311,7 +311,6 @@ public class Workbook implements Model {
         {
             records.add( retval.createStyle( k ) );
         }
-        retval.records.setPalettepos( records.size() );
         records.add( retval.createUseSelFS() );
         for ( int k = 0; k < 1; k++ )
         {   // now just do 1