//space in the leftmost cell\r
w = sheet.getColumnWidthInPixels(col2++);\r
if (isHSSF) {\r
- w *= 1 - anchor.getDx1()/1024d;\r
+ w *= 1d - anchor.getDx1()/1024d;\r
} else {\r
- w -= anchor.getDx1()/EMU_PER_PIXEL;\r
+ w -= anchor.getDx1()/(double)EMU_PER_PIXEL;\r
}\r
\r
while(w < scaledWidth){\r
private static double getRowHeightInPixels(Sheet sheet, int rowNum) {\r
Row r = sheet.getRow(rowNum);\r
double points = (r == null) ? sheet.getDefaultRowHeightInPoints() : r.getHeightInPoints();\r
- return Units.toEMU(points)/EMU_PER_PIXEL;\r
+ return Units.toEMU(points)/(double)EMU_PER_PIXEL;\r
}\r
}\r