mirror of https://github.com/apache/poi.git
Bugzilla Bug 9831
Problems with the cell format when setting border git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
deb11f1ab4
commit
737ca92120
|
@ -67,6 +67,7 @@ import org.apache.poi.util.POILogFactory;
|
|||
|
||||
import org.apache.poi.hssf.record.*;
|
||||
import org.apache.poi.hssf.util.SheetReferences;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
|
||||
/**
|
||||
* Workbook
|
||||
|
@ -1469,6 +1470,10 @@ public class Workbook {
|
|||
retval.setPaletteOptions(( short ) 0);
|
||||
retval.setAdtlPaletteOptions(( short ) 0);
|
||||
retval.setFillPaletteOptions(( short ) 0x20c0);
|
||||
retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);
|
||||
retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);
|
||||
retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);
|
||||
retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
@ -251,7 +251,6 @@ public class ExtendedFormatRecord
|
|||
* @param data data of the record (should not contain sid/len)
|
||||
* @param offset of the record's data
|
||||
*/
|
||||
|
||||
public ExtendedFormatRecord(short id, short size, byte [] data,
|
||||
int offset)
|
||||
{
|
||||
|
@ -1733,7 +1732,7 @@ public class ExtendedFormatRecord
|
|||
/**
|
||||
* get the background palette color index
|
||||
*
|
||||
* @retyrb color palette index
|
||||
* @return color palette index
|
||||
* @see #getFillPaletteOptions()
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue