Fix #5725, single pixel caret drawing artefact in an empty BTextView:

* _NullStyleHeight() must return the height including the 1 pixel gap between
  the lines, as that's how it's being used

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36469 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-04-25 12:16:50 +00:00
parent 4f221234a0
commit 3417c110cf
1 changed files with 1 additions and 2 deletions

View File

@ -1792,7 +1792,6 @@ BTextView::PointAt(int32 inOffset, float *outHeight) const
} else {
int32 length = inOffset - line->offset;
result.x += _TabExpandedStyledWidth(line->offset, length);
}
}
@ -5531,7 +5530,7 @@ BTextView::_NullStyleHeight() const
font_height fontHeight;
font->GetHeight(&fontHeight);
return fontHeight.ascent + fontHeight.descent;
return ceilf(fontHeight.ascent + fontHeight.descent + 1);
}