Give a warning and return fals on isTextDocument if the text-document is not properly initialized.
Otherwise it may crash on code which relies on isTextDocument() == (bool)textDocument().
No clue why this actually happens.
zwabel | Mar 3 2012, 11:21 AM |