mirror of https://github.com/apache/poi.git
Add back another hssf overloaded method for binary compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@678379 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8eb4ea33e6
commit
a6701efc5f
|
@ -315,11 +315,12 @@ public class HSSFCellStyle implements CellStyle
|
|||
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont()
|
||||
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(short)
|
||||
*/
|
||||
|
||||
public void setFont(Font font)
|
||||
{
|
||||
public void setFont(Font font) {
|
||||
setFont((HSSFFont)font);
|
||||
}
|
||||
public void setFont(HSSFFont font) {
|
||||
format.setIndentNotParentFont(true);
|
||||
short fontindex = ((HSSFFont) font).getIndex();
|
||||
short fontindex = font.getIndex();
|
||||
format.setFontIndex(fontindex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue