diff options
author | Paolo Angelelli <paolo.angelelli@theqtcompany.com> | 2016-08-10 16:36:28 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@theqtcompany.com> | 2016-08-10 14:48:30 +0000 |
commit | 9eba88b32e3908326c0ae5c37b55df0a5f5be9cd (patch) | |
tree | 92e5a0e939cf2b15eda65baa775b36b609324e81 /src/plugins/geoservices | |
parent | 114674f7d8bf4c1e919d42d76ce34ad43830ed09 (diff) | |
download | qtlocation-9eba88b32e3908326c0ae5c37b55df0a5f5be9cd.tar.gz |
Fix for wrong std::copy in QGeoTileProviderOsm::TileProvider
This patch fixes a bug that shows up at least on osX and iOS devices
caused by an incorrect offset used in std::copy
Change-Id: I09f106ddf63983365d4462e2f18a10ce44f1200a
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/plugins/geoservices')
-rw-r--r-- | src/plugins/geoservices/osm/qgeotileproviderosm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeotileproviderosm.h b/src/plugins/geoservices/osm/qgeotileproviderosm.h index cdff7997..f396b3b5 100644 --- a/src/plugins/geoservices/osm/qgeotileproviderosm.h +++ b/src/plugins/geoservices/osm/qgeotileproviderosm.h @@ -113,7 +113,7 @@ public: return; int sortedOffsets[3]; - std::copy(offset, offset + 4, sortedOffsets); + std::copy(offset, offset + 3, sortedOffsets); sort2(sortedOffsets[0] ,sortedOffsets[1]); sort2(sortedOffsets[1] ,sortedOffsets[2]); sort2(sortedOffsets[0] ,sortedOffsets[1]); |