From: Jason Height Date: Sun, 9 Nov 2003 21:15:51 +0000 (+0000) Subject: Fix to 24519. getCustomPalette now works on the head with a newly created workbook X-Git-Tag: PERF_BEFORE_MERGE~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8dc8c41f199420fdd671a3e4f79c3eee6a71e107;p=poi.git Fix to 24519. getCustomPalette now works on the head with a newly created workbook git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353441 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/model/Workbook.java b/src/java/org/apache/poi/hssf/model/Workbook.java index 2ef73c2f92..e3593414c6 100644 --- a/src/java/org/apache/poi/hssf/model/Workbook.java +++ b/src/java/org/apache/poi/hssf/model/Workbook.java @@ -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