Fix findScope performance issue

Fixes the performance of large find scope selections. Try
Ctrl+A Ctrl+F in a large file and scroll.
This commit is contained in:
mae
2010-07-14 18:48:36 +02:00
parent ec223d687e
commit b61c376914

View File

@@ -138,6 +138,9 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
QTextBlock block = begin.block();
if (block.blockNumber() < m_editor->firstVisibleBlock().blockNumber() - 4)
block = m_editor->document()->findBlockByNumber(m_editor->firstVisibleBlock().blockNumber() - 4);
bool inSelection = false;
QVector<QRectF> selection;