mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Prevent warnings about assigning undefined values
This commit is contained in:
parent
83fca6a97b
commit
8163dcb0ab
@ -239,7 +239,8 @@ Item {
|
||||
anchorPoint.x: image.width/2
|
||||
anchorPoint.y: image.height/2
|
||||
coordinate: position
|
||||
zoomLevel: mapZoomLevel > mapImageMinZoom ? mapZoomLevel : mapImageMinZoom
|
||||
// when zooming, mapImageMinZoom can be temporarily undefined. Not sure why
|
||||
zoomLevel: (typeof mapImageMinZoom !== 'undefined') ? (mapZoomLevel > mapImageMinZoom ? mapZoomLevel : mapImageMinZoom) : zoomLevel
|
||||
autoFadeIn: false // not in 5.12
|
||||
|
||||
sourceItem: Grid {
|
||||
|
Loading…
Reference in New Issue
Block a user