Fixed bad redrawing of the text when alignment is different than B_ALIGN_LEFT
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
650765d20c
commit
d51394ddd6
@ -35,7 +35,6 @@
|
||||
// to refresh only changed parts of text (currently we often redraw the whole text)
|
||||
|
||||
// Known Bugs:
|
||||
// - some issues when alignment is different than B_ALIGN_LEFT.
|
||||
// - visual artifacts appears when you highlight some text which spans between
|
||||
// multiple lines and with mixed sizes/styles (could be something in GetTextRegion())
|
||||
|
||||
@ -3649,6 +3648,10 @@ BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset,
|
||||
startLine = (startLine < 0) ? 0 : startLine;
|
||||
endLine = (endLine > maxLine) ? maxLine : endLine;
|
||||
|
||||
// TODO: See if we can avoid this
|
||||
if (fAlignment != B_ALIGN_LEFT)
|
||||
erase = true;
|
||||
|
||||
BRect eraseRect = clipRect;
|
||||
long startEraseLine = startLine;
|
||||
STELinePtr line = (*fLines)[startLine];
|
||||
|
Loading…
Reference in New Issue
Block a user