Removed SetViewCursor() from BTextView::_Deactivate(), as suggested by

cl21.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2008-01-01 15:50:37 +00:00
parent 691b2922a6
commit 2c2176ceba
+3 -8
View File
@@ -3541,7 +3541,9 @@ BTextView::_DrawLine(BView *view, const int32 &lineNum, const int32 &startOffset
} }
// do we have any text to draw? // do we have any text to draw?
if (length > 0) { if (length <= 0)
return;
bool foundTab = false; bool foundTab = false;
int32 tabChars = 0; int32 tabChars = 0;
int32 numTabs = 0; int32 numTabs = 0;
@@ -3616,7 +3618,6 @@ BTextView::_DrawLine(BView *view, const int32 &lineNum, const int32 &startOffset
numTabs = 0; numTabs = 0;
} while (foundTab && tabChars > 0); } while (foundTab && tabChars > 0);
} }
}
} }
@@ -4191,12 +4192,6 @@ BTextView::_Deactivate()
Highlight(fSelStart, fSelEnd); Highlight(fSelStart, fSelEnd);
} else } else
_HideCaret(); _HideCaret();
BPoint where;
ulong buttons;
GetMouse(&where, &buttons);
if (Bounds().Contains(where))
SetViewCursor(B_CURSOR_SYSTEM_DEFAULT);
} }