Line 6334 is probably more to blame than my first guess...
this:
$maxy = $this->y + $maxh - max($row_height, $h);
is different than (this fixes the problem)::
$maxy = $this->y + ($maxh - max($row_height, $h));

 

Last edit: Ricardo Rojo Bonfim 2016-03-18