bug 34007 - DBCS cell format, patch by Alexander Litvinov
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353657 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
150a9d0475
commit
8b20b4a4db
@ -23,11 +23,13 @@ import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.hssf.util.SheetReferences;
|
||||
import org.apache.poi.util.POILogFactory;
|
||||
import org.apache.poi.util.POILogger;
|
||||
import org.apache.poi.util.StringUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
/**
|
||||
* Low level model implementation of a Workbook. Provides creational methods
|
||||
@ -1989,6 +1991,7 @@ public class Workbook implements Model
|
||||
maxformatid = maxformatid >= (short) 0xa4 ? (short) ( maxformatid + 1 ) : (short) 0xa4; //Starting value from M$ empiracle study.
|
||||
rec.setIndexCode( maxformatid );
|
||||
rec.setFormatStringLength( (byte) format.length() );
|
||||
rec.setUnicodeFlag(StringUtil.isUnicodeFormat(format));
|
||||
rec.setFormatString( format );
|
||||
|
||||
int pos = 0;
|
||||
@ -2001,6 +2004,7 @@ public class Workbook implements Model
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the first occurance of a record matching a particular sid.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user