OSDN Git Service

Text editor: Fix potential crash in the plain text editor.
authorLeandro Melo <leandro.melo@nokia.com>
Wed, 13 Oct 2010 14:26:29 +0000 (16:26 +0200)
committerLeandro Melo <leandro.melo@nokia.com>
Wed, 13 Oct 2010 14:37:05 +0000 (16:37 +0200)
commit44cefd73b19055e8b15041482e6f39cd24ce4db0
tree8c6d188ff10b5d9d023757e665d44be5bc4cb7c0
parent47310350a1395d7e80ce207e43629a7ae78bc9da
Text editor: Fix potential crash in the plain text editor.

Example situation: The plain text editor is displaying in-memory content and
has not been explicitly "configured". If there's an attempt to indent the text
it crashes since the indenter is invalid. This can happen if one clicks on 'Show
View Contents in Editor' within a debug session and press enter in the editor.

Reviewed-by: con
src/plugins/texteditor/plaintexteditor.cpp
src/plugins/texteditor/plaintexteditor.h