Turn a local QHash into a QMultiHash
bb10972a0402bewas merged before one of its parent patches which changed this QHash into a QMultiHash. So in 5.14 it would overwrite values instead of adding new entries. No idea if it has caused or will cause any regressions. But it was an accident so let's fix it. Amends972a0402be. Change-Id: I6623b0b7924024df148d5c83bcbb612f3e595f56 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
parent
c0adcf0f22
commit
0ae489053a
|
|
@ -2481,7 +2481,7 @@ void QWidgetTextControl::setExtraSelections(const QList<QTextEdit::ExtraSelectio
|
|||
{
|
||||
Q_D(QWidgetTextControl);
|
||||
|
||||
QHash<int, int> hash;
|
||||
QMultiHash<int, int> hash;
|
||||
for (int i = 0; i < d->extraSelections.count(); ++i) {
|
||||
const QAbstractTextDocumentLayout::Selection &esel = d->extraSelections.at(i);
|
||||
hash.insert(esel.cursor.anchor(), i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue