If we use float temporaries when computing the bounds of
a group, then, depending on what variables are kept in registers
and what stored on the stack, the accumulated difference between
natural_width and min_width can be more than FLOAT_EPSILON.
Using double temporaries will eliminate the difference in most
cases, or, very rarely, reduce it to a last-bit error.
http://bugzilla.openedhand.com/show_bug.cgi?id=1632
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
gfloat *natural_width_p)
{
GList *l;
- gfloat min_left, min_right;
- gfloat natural_left, natural_right;
+ gdouble min_left, min_right;
+ gdouble natural_left, natural_right;
min_left = 0;
min_right = 0;
gfloat *natural_height_p)
{
GList *l;
- gfloat min_top, min_bottom;
- gfloat natural_top, natural_bottom;
+ gdouble min_top, min_bottom;
+ gdouble natural_top, natural_bottom;
min_top = 0;
min_bottom = 0;