Fix Region Map Editor incorrectly displaying certain MAPSEC data

This commit is contained in:
GriffinR 2025-06-30 20:35:28 -04:00
parent d2febd99e9
commit e7f91097b2
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
- Fix click-drag map selections behaving unexpectedly when the cursor is outside the map grid.
- Fix events being dragged in negative coordinates lagging behind the cursor.
- Fix the shortcut for duplicating events working while on the Connections tab.
- Fix the Region Map Editor incorrectly displaying whether a `MAPSEC` has region map data.
- Fix warning not appearing when the log file exceeds maximum size.
- Fix unnecessary resources being used to watch files.

View File

@ -2641,7 +2641,10 @@ void Project::setRegionMapEntries(const QHash<QString, MapSectionEntry> &entries
QHash<QString, MapSectionEntry> Project::getRegionMapEntries() const {
QHash<QString, MapSectionEntry> entries;
for (auto it = this->locationData.constBegin(); it != this->locationData.constEnd(); it++) {
entries[it.key()] = it.value().map;
const MapSectionEntry regionMapData = it.value().map;
if (regionMapData.valid) {
entries[it.key()] = regionMapData;
}
}
return entries;
}