Browse Source

Merge pull request #7398 from DonLakeFlyer/GeoFenceCrash

Geo fence polygon vertex crash
QGC4.4
Don Gagne 6 years ago committed by GitHub
parent
commit
08bba78472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ChangeLog.md
  2. 7
      src/PlanView/GeoFenceMapVisuals.qml
  3. 2
      src/Terrain/TerrainQuery.cc

1
ChangeLog.md

@ -9,6 +9,7 @@ Note: This file only contains high level features or important fixes. @@ -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

7
src/PlanView/GeoFenceMapVisuals.qml

@ -20,6 +20,7 @@ import QGroundControl.FlightMap 1.0 @@ -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 { @@ -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 { @@ -116,6 +122,7 @@ Item {
model: _circles
delegate : QGCMapCircleVisuals {
parent: _root
mapControl: map
mapCircle: object
borderWidth: object.inclusion ? _borderWidthInclusion : _borderWidthExclusion

2
src/Terrain/TerrainQuery.cc

@ -489,7 +489,7 @@ void TerrainTileManager::_terrainDone(QByteArray responseBytes, QNetworkReply::N @@ -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()) {

Loading…
Cancel
Save