Init _cursor.line and _cursor.column before layout

SimpleText::layout in edit mode calls cursorRect(), which uses
the value of _cursor.line to index an array. If _cursor.line
is not set to zero before calling layout(), it can be out of range,
causing a crash.