Browse Source

Merge pull request #6704 from mavlink/qmlFix

Skip custom instrument widget test if none exists.
QGC4.4
Gus Grubba 7 years ago committed by GitHub
parent
commit
3284f8b3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/FlightDisplay/FlightDisplayViewMap.qml

2
src/FlightDisplay/FlightDisplayViewMap.qml

@ -101,7 +101,7 @@ FlightMap { @@ -101,7 +101,7 @@ FlightMap {
var vehiclePoint = flightMap.fromCoordinate(_activeVehicleCoordinate, false /* clipToViewport */)
var toolStripRightEdge = mapFromItem(toolStrip, toolStrip.x, 0).x + toolStrip.width
var instrumentsWidth = 0
if (QGroundControl.corePlugin.options.instrumentWidget.widgetPosition === CustomInstrumentWidget.POS_TOP_RIGHT) {
if (QGroundControl.corePlugin.options.instrumentWidget && QGroundControl.corePlugin.options.instrumentWidget.widgetPosition === CustomInstrumentWidget.POS_TOP_RIGHT) {
// Assume standard instruments
instrumentsWidth = flightDisplayViewWidgets.getPreferredInstrumentWidth()
}

Loading…
Cancel
Save