richedit: Account for selection bar in calculating available width.

This commit is contained in:
Dylan Smith 2008-10-10 17:50:40 -04:00 committed by Alexandre Julliard
parent 47ac325f82
commit a32f1f2c1c
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ static void ME_BeginRow(ME_WrapContext *wc, ME_DisplayItem *para)
- (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin;
} else if (wc->context->editor->bWordWrap) {
wc->nAvailWidth = wc->context->rcView.right - wc->context->rcView.left
- (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin;
- (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin
- wc->context->editor->selofs;
} else {
wc->nAvailWidth = ~0u >> 1;
}