-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124553/
-----------------------------------------------------------

Review request for Marble.


Repository: marble


Description
-------

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.


Diffs
-----

  src/lib/marble/osm/OsmPlacemarkData.h 58f7e69 
  src/lib/marble/osm/OsmPlacemarkData.cpp c78888b 
  src/plugins/runner/osm/OsmObjectManager.cpp 85f78d2 
  src/plugins/runner/osm/handlers/OsmMemberTagHandler.cpp 2e1c9b7 
  src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp cac7852 
  src/plugins/runner/osm/writers/OsmRelationTagWriter.cpp 8f79a17 

Diff: https://git.reviewboard.kde.org/r/124553/diff/


Testing
-------

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


Thanks,

Marius Stanciu

_______________________________________________
Marble-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/marble-devel

Reply via email to