Skip to content

Commit

Permalink
Merge branch 'master' of https://gitee.com/youseries/ureport
Browse files Browse the repository at this point in the history
  • Loading branch information
youseries committed Oct 11, 2018
2 parents c99cad7 + de8c482 commit 6cfe2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Object execute(List<ExpressionData<?>> dataList, Context context,Cell cur
}
}
data.setScale(pos, BigDecimal.ROUND_FLOOR);
return Math.ceil(data.doubleValue());
return Math.floor(data.doubleValue());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public void doDataWrapCompute(Context context){
lineHeight=cellStyle.getLineHeight();
}
fontSize=fontSize*lineHeight;
int singleLineHeight=UnitUtils.pointToPixel(fontSize);//fontMetrics.getHeight();
int singleLineHeight=UnitUtils.pointToPixel(fontSize)-2;//fontMetrics.getHeight();
if(textWidth<=totalColumnWidth){
return;
}
Expand Down

0 comments on commit 6cfe2b1

Please sign in to comment.