Permalink
Browse files

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
2 parents 3122ef4 + be58e69 commit 8fedbd295b29f05b2965af09bd708afb929bb9dc Thomas Einwaller committed Mar 12, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/main/groovy/org/gsheets/ExcelFile.groovy
@@ -79,7 +79,7 @@ import org.apache.poi.hssf.usermodel.HSSFSheet
*/
class ExcelFile {
- private Workbook workbook = new HSSFWorkbook()
+ Workbook workbook = new HSSFWorkbook()
private Sheet sheet
private int rowsCounter
@@ -209,9 +209,7 @@ class ExcelFile {
Cell cell = row.getCell(cellIndex.intValue() - 1)
if (!cell) return
- cell.setCellStyle(workbook.createCellStyle())
-
- if (cellStyleId) cell.getCellStyle().cloneStyleFrom(cellStyles.get(cellStyleId))
+ if (cellStyleId) cell.setCellStyle(cellStyles.get(cellStyleId))
if (fontId) cell.getCellStyle().setFont(fonts.get(fontId))
if (dataFormat) {
DataFormat df = workbook.createDataFormat()

0 comments on commit 8fedbd2

Please sign in to comment.