Fix so that this.flatMidpoint_ is reset on recalculation

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