Kaydet (Commit) ca37fcec authored tarafından Michael Meeks's avatar Michael Meeks

TextWindow: handle LoseFocus during dispose.

Change-Id: I7a7d9cc7948ee08211cbfaa3df8197c1ede148b7
üst 10cddaae
...@@ -738,7 +738,9 @@ TextWindow::~TextWindow() ...@@ -738,7 +738,9 @@ TextWindow::~TextWindow()
void TextWindow::dispose() void TextWindow::dispose()
{ {
delete mpExtTextView; delete mpExtTextView;
mpExtTextView = NULL;
delete mpExtTextEngine; delete mpExtTextEngine;
mpExtTextEngine = NULL;
Window::dispose(); Window::dispose();
} }
...@@ -927,7 +929,7 @@ void TextWindow::LoseFocus() ...@@ -927,7 +929,7 @@ void TextWindow::LoseFocus()
{ {
Window::LoseFocus(); Window::LoseFocus();
if ( mbFocusSelectionHide && !mbActivePopup ) if ( mbFocusSelectionHide && !mbActivePopup && mpExtTextView )
mpExtTextView->SetPaintSelection( false ); mpExtTextView->SetPaintSelection( false );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment