- fix: Contents wider than the editor are not displayed.

This commit is contained in:
Roy Qu 2024-03-01 18:28:50 +08:00
parent 9740537140
commit b04c8b5309
1 changed files with 1 additions and 2 deletions

View File

@ -6051,8 +6051,7 @@ void QSynEdit::paintEvent(QPaintEvent *event)
nX1 = mLeftPos; nX1 = mLeftPos;
if (rcClip.left() > mGutterWidth + 2 ) if (rcClip.left() > mGutterWidth + 2 )
nX1 += (rcClip.left() - mGutterWidth - 2 ) ; nX1 += (rcClip.left() - mGutterWidth - 2 ) ;
// nX2 = mLeftPos + (rcClip.right() - mGutterWidth - 2); nX2 = mLeftPos + (rcClip.right() - mGutterWidth - 2);
nX2 = rcClip.right();
// lines // lines
nL1 = minMax(mTopLine + rcClip.top() / mTextHeight, mTopLine, displayLineCount()); nL1 = minMax(mTopLine + rcClip.top() / mTextHeight, mTopLine, displayLineCount());
nL2 = minMax(mTopLine + (rcClip.bottom() + mTextHeight - 1) / mTextHeight, 1, displayLineCount()); nL2 = minMax(mTopLine + (rcClip.bottom() + mTextHeight - 1) / mTextHeight, 1, displayLineCount());