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:
@@ -2152,7 +2152,12 @@ BTextView::MakeEditable(bool editable)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
fEditable = editable;
|
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 (Window() != NULL && fActive) {
|
||||||
if (!fEditable) {
|
if (!fEditable) {
|
||||||
if (fCaretVisible)
|
if (fCaretVisible)
|
||||||
|
|||||||
Reference in New Issue
Block a user