1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fix round

This commit is contained in:
Lu Wang 2012-09-21 03:11:36 +08:00
parent 3c32041adf
commit 8978e15dc0

View File

@ -253,7 +253,7 @@ void ffw_metric(double * ascent, double * descent, int * em_size)
int a = bb.maxy;
int d = bb.miny;
sf->ascent = min((int)round(bb.maxy), em);
sf->ascent = min(floor(bb.maxy+0.5), em);
sf->descent = em - bb.maxy;
info->os2_winascent = a;