fix: current top line changed after change font size.
This commit is contained in:
parent
198ff102ac
commit
565e7914f8
|
@ -3230,9 +3230,12 @@ void QSynEdit::recalcCharExtent()
|
|||
}
|
||||
mTextHeight *= mLineSpacingFactor;
|
||||
|
||||
setTopPos(currentTopRow * mTextHeight);
|
||||
setLeftPos(currentLeftCol * mCharWidth);
|
||||
onSizeOrFontChanged();
|
||||
int newTopPos = currentTopRow * mTextHeight;
|
||||
setTopPos(newTopPos);
|
||||
if (newTopPos!=mTopPos)
|
||||
mTopPos = newTopPos;
|
||||
setLeftPos(currentLeftCol * mCharWidth);
|
||||
}
|
||||
|
||||
QString QSynEdit::expandAtWideGlyphs(const QString &S)
|
||||
|
|
Loading…
Reference in New Issue