gsoc: Changes key type for the member hash within OsmPlacemarkData

Review Request #124553 - Created July 31, 2015 and submitted

Information
Marius Stanciu
marble
master
Reviewers
marble

It seems storing data with pointer keys within a QHash wasn't a good idea:
A polygon's inner boundaries are stored within a QVector, which reallocates it's objects sometimes, thus pointers to inner boundaries are not constant.
Changed the key to int with the following meaning:

-1 ===> outer boundary of a polygon
0,1,2,3...etc =====> inner boundaries of a polygon in the order provided by polygon->innerBoundaries() ( the QVector order )

This wasn't a problem until I started modiying inner boundaries in the editor.

Usual tests ( added polygons, imported, exported, reimported ), stuff works as expected.

Dennis Nienhüser
Marius Stanciu
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 3a83ed99b6aa852a770c97cad6c363d05f49994e by Marius Stanciu to branch master.
Loading...