+ // The following code will produce a height which is guaranteed to
+ // be too high: old lineheight + the height of both new lines.
+ // We can probably drop the old line height and start with height =
+ // 0. FIXME
+ wxLayoutLine *prev = m_CursorLine->GetPreviousLine();
+ if(prev)
+ height += prev->GetHeight();
+ height += m_CursorLine->GetHeight();
+