Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7a20f244 authored by Oleg Solovyov's avatar Oleg Solovyov Committed by Torsten Rahn

CHANGELOG: Fix for "Some countries are invisible on the political map"

BUG: 381984
Differential Revision: https://phabricator.kde.org/D7625
parent 1adbdfc0
......@@ -186,9 +186,10 @@ void GeoGraphicsScene::applyHighlight( const QVector< GeoDataPlacemark* > &selec
*/
for( const GeoDataPlacemark *placemark: selectedPlacemarks ) {
for (auto tileIter = d->m_features.find(placemark); tileIter != d->m_features.end() && tileIter.key() == placemark; ++tileIter) {
auto const & clickedItems = d->m_tiledItems[*tileIter];
auto iter = clickedItems.find(placemark);
if (iter != clickedItems.end()) {
auto const & clickedItemsList = d->m_tiledItems.values(*tileIter);
for (auto const & clickedItems: clickedItemsList) { //iterate through FeatureItemMap clickedItems (QHash)
for (auto iter = clickedItems.find(placemark); iter != clickedItems.end(); ++iter) {
if ( iter.key() == placemark ) {
const GeoDataObject *parent = placemark->parent();
if ( parent ) {
auto item = *iter;
......@@ -220,6 +221,8 @@ void GeoGraphicsScene::applyHighlight( const QVector< GeoDataPlacemark* > &selec
}
}
}
}
}
}
}
}
......@@ -270,7 +273,7 @@ void GeoGraphicsScene::addItem( GeoGraphicsItem* item )
auto & tileList = d->m_tiledItems[key];
auto feature = item->feature();
tileList.insert(feature, item);
tileList.insertMulti(feature, item);
d->m_features.insert(feature, key );
}
......
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