Fixed redrawing when alignment is center or right. Extended a comment to a bug which I can't reproduce anymore

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15912 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-01-11 17:44:22 +00:00
parent fc1e671b53
commit 3d453d2da3
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -3242,7 +3242,7 @@ BTextView::Refresh(int32 fromOffset, int32 toOffset, bool erase,
int32 drawOffset = fromOffset;
if (LineHeight(fromLine) != saveLineHeight ||
newHeight < saveHeight || fromLine < saveFromLine )
newHeight < saveHeight || fromLine < saveFromLine || fAlignment != B_ALIGN_LEFT)
drawOffset = (*fLines)[fromLine]->offset;
// TODO: Is it ok here ?
@@ -3634,7 +3634,7 @@ BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset, bool era
BRect eraseRect = clipRect;
long startEraseLine = startLine;
STELine* line = (*fLines)[startLine];
if (erase && startOffset != -1) {
if (erase && startOffset != -1 && fAlignment == B_ALIGN_LEFT) {
// erase only to the right of startOffset
startEraseLine++;
long startErase = startOffset;