- fix: Contents wider than the editor are not displayed.
This commit is contained in:
parent
9740537140
commit
b04c8b5309
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue