Ticket #2209: TextView-stippi.diff
File TextView-stippi.diff, 941 bytes (added by , 16 years ago) |
---|
-
TextView.cpp
3576 3576 } while ((tabChars + numTabs) < numBytes); 3577 3577 } 3578 3578 3579 if (inputRegion.CountRects() > 0) { 3579 drawing_mode textRenderingMode = B_OP_COPY; 3580 3581 if (inputRegion.CountRects() > 0 3582 && ((offset <= fInline->Offset() 3583 && fInline->Offset() < offset + tabChars) 3584 || (fInline->Offset() <= offset 3585 && offset < fInline->Offset() + fInline->Length()))) { 3586 3587 textRenderingMode = B_OP_OVER; 3588 3580 3589 BRegion textRegion; 3581 3590 GetTextRegion(offset, offset + length, &textRegion); 3582 3591 … … 3608 3617 const char *stringToDraw = fText->GetString(offset, 3609 3618 &returnedBytes); 3610 3619 3620 view->SetDrawingMode(textRenderingMode); 3611 3621 view->DrawString(stringToDraw, returnedBytes); 3612 3622 if (foundTab) { 3613 3623 float penPos = PenLocation().x - fTextRect.left;