Fix so that this.flatMidpoint_ is reset on recalculation

Without this fix, this.flatMidpoint_ will grow on each revision causing problems with in dependant code like drawtext rendering.