Unverified Commit 08bba784 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7398 from DonLakeFlyer/GeoFenceCrash

Geo fence polygon vertex crash
parents 9d62c93d 2cb7fafb
......@@ -9,6 +9,7 @@ Note: This file only contains high level features or important fixes.
* Major rewrite and bug fix pass through Structure Scan. Previous version had such bad problems that it can no longer be supported. Plans with Structure Scan will need to be recreated. New QGC will not load old Structure Scan plans.
### 3.5.3 - Not yet released
* Fix crash when clicking on GeoFence polygon vertex
* PX4: Fix missing ```MC_YAW_FF``` parameter in PID Tuning
* ArduPilot: Fix parameter file save generating bad characters from git hash
......
......@@ -20,6 +20,7 @@ import QGroundControl.FlightMap 1.0
/// GeoFence map visuals
Item {
id: _root
z: QGroundControl.zOrderMapItems
property var map
......@@ -99,10 +100,15 @@ Item {
}
}
// By default the parent for Instantiator.delegate item is the Instatiator itself. By there is a bug
// in Qt which will cause a crash if this delete item has Menu item within it. Since the Menu item
// doesn't like having a non-visual item as parent. This is likely related to hybrid QQuickWidtget+QML
// Hence Qt folks are going to care. In order to workaround you have to parent the item to _root Item instead.
Instantiator {
model: _polygons
delegate : QGCMapPolygonVisuals {
parent: _root
mapControl: map
mapPolygon: object
borderWidth: object.inclusion ? _borderWidthInclusion : _borderWidthExclusion
......@@ -116,6 +122,7 @@ Item {
model: _circles
delegate : QGCMapCircleVisuals {
parent: _root
mapControl: map
mapCircle: object
borderWidth: object.inclusion ? _borderWidthInclusion : _borderWidthExclusion
......
......@@ -489,7 +489,7 @@ void TerrainTileManager::_terrainDone(QByteArray responseBytes, QNetworkReply::N
return;
}
qWarning() << "Received some bytes of terrain data: " << responseBytes.size();
qCDebug(TerrainQueryLog) << "Received some bytes of terrain data: " << responseBytes.size();
TerrainTile* terrainTile = new TerrainTile(responseBytes);
if (terrainTile->isValid()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment