FindBug warning: ICAST_IDIV_CAST_TO_DOUBLE: integral division result cast to double
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cba32cd1a0
commit
a736ac1777
@ -158,9 +158,9 @@ public class ImageUtils {
|
||||
//space in the leftmost cell
|
||||
w = sheet.getColumnWidthInPixels(col2++);
|
||||
if (isHSSF) {
|
||||
w *= 1 - anchor.getDx1()/1024d;
|
||||
w *= 1d - anchor.getDx1()/1024d;
|
||||
} else {
|
||||
w -= anchor.getDx1()/EMU_PER_PIXEL;
|
||||
w -= anchor.getDx1()/(double)EMU_PER_PIXEL;
|
||||
}
|
||||
|
||||
while(w < scaledWidth){
|
||||
@ -280,6 +280,6 @@ public class ImageUtils {
|
||||
private static double getRowHeightInPixels(Sheet sheet, int rowNum) {
|
||||
Row r = sheet.getRow(rowNum);
|
||||
double points = (r == null) ? sheet.getDefaultRowHeightInPoints() : r.getHeightInPoints();
|
||||
return Units.toEMU(points)/EMU_PER_PIXEL;
|
||||
return Units.toEMU(points)/(double)EMU_PER_PIXEL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user