GetLineCount() after GetTextDirection() returns wrong value.