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:
parent
8ae0d03ade
commit
f9d284011a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user