Fix last commit.

This commit is contained in:
Nodir Temirkhodjaev 2020-08-09 16:15:35 +03:00
parent be9a5eebda
commit e41a2c8231

View File

@ -15330,7 +15330,7 @@ void QCustomPlot::processRectSelection(QRect rect, QMouseEvent *event)
if (!potentialSelections.isEmpty()) if (!potentialSelections.isEmpty())
{ {
auto it = potentialSelections.begin(); auto it = potentialSelections.begin();
auto last = potentialSelections.end(); --last; auto last = --potentialSelections.end();
while (it != last) // erase all except last element while (it != last) // erase all except last element
it = potentialSelections.erase(it); it = potentialSelections.erase(it);
} }