Commit cf455de8 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

No need to sort the tiles, the list is sorted in the end.

parent f917cb2f
......@@ -459,10 +459,8 @@ QVector<VisiblePlacemark *> PlacemarkLayout::generateLayout( const ViewportParam
const QItemSelection selection = m_selectionModel->selection();
QList<TileId> tileIdList = visibleTiles( viewport ).toList();
qSort( tileIdList );
QList<const GeoDataPlacemark*> placemarkList;
foreach ( const TileId &tileId, tileIdList ) {
foreach ( const TileId &tileId, visibleTiles( viewport ) ) {
placemarkList += m_placemarkCache.value( tileId );
}
qSort(placemarkList.begin(), placemarkList.end(), GeoDataPlacemark::placemarkLayoutOrderCompare);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment