Browse Source

Skip custom instrument widget test if none exists.

QGC4.4
Gus Grubba 7 years ago
parent
commit
7ab86a9727
  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