Check if we have a window in BTextView::DrawLines(). This should fix bug 383. We might remove it from there and check in the caller instead, as DrawLines is a private function (maybe add an ASSERT() call)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3541,6 +3541,9 @@ BTextView::DoDeleteText(int32 fromOffset, int32 toOffset, _BTextChangeResult_ *o
|
|||||||
void
|
void
|
||||||
BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset, bool erase)
|
BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset, bool erase)
|
||||||
{
|
{
|
||||||
|
if (!Window())
|
||||||
|
return;
|
||||||
|
|
||||||
// clip the text
|
// clip the text
|
||||||
BRect clipRect = Bounds() & fTextRect;
|
BRect clipRect = Bounds() & fTextRect;
|
||||||
clipRect.InsetBy(-1, -1);
|
clipRect.InsetBy(-1, -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user