invalidate the null style in BTextView::MakeEditable(). Fixes bug 362

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18568 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-08-22 15:25:24 +00:00
parent 8ae0d03ade
commit f9d284011a

View File

@ -2152,7 +2152,12 @@ BTextView::MakeEditable(bool editable)
return;
fEditable = editable;
// TextControls change the color of the text when
// they are made editable, so we need to invalidate
// the NULL style here
// TODO: it works well, but it could be caused by a bug somewhere else
if (fEditable)
fStyles->InvalidateNullStyle();
if (Window() != NULL && fActive) {
if (!fEditable) {
if (fCaretVisible)