gsoc: Changes key type for the member hash within OsmPlacemarkData
Review Request #124553 - Created July 31, 2015 and submitted
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.