optimization: don't recalculate glyph positions in selected lines.
This commit is contained in:
parent
311fe880bb
commit
8faa2c0aa6
|
@ -1068,7 +1068,7 @@ void QSynEditPainter::paintLines()
|
||||||
// Values in it doesn't matter, we'll recalculate them.
|
// Values in it doesn't matter, we'll recalculate them.
|
||||||
QList<int> glyphStartPositionsList;
|
QList<int> glyphStartPositionsList;
|
||||||
bool lineWidthValid = mEdit->mDocument->lineWidthValid(vLine-1);
|
bool lineWidthValid = mEdit->mDocument->lineWidthValid(vLine-1);
|
||||||
bool calculateGlyphPositions = ( mHasSelectionInLine || lineTextChanged || !lineWidthValid);
|
bool calculateGlyphPositions = ( lineTextChanged || !lineWidthValid);
|
||||||
if (calculateGlyphPositions) {
|
if (calculateGlyphPositions) {
|
||||||
glyphStartPositionsList = glyphStartCharList;
|
glyphStartPositionsList = glyphStartCharList;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue