Skip to content

Commit

Permalink
Fix antenna height, use 0 as NaN.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 committed Sep 3, 2024
1 parent 32d2578 commit 5a83f47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/positioning/positioninginformationmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ QString PositioningInformationModel::getAltitude( double distanceUnitFactor, con
{
details.push_back( tr( "ortho." ) );
}
if ( antennaHeight() != -1 )
if ( antennaHeight() != 0 )
{
details.push_back( tr( "ant." ) );
}
Expand Down
2 changes: 1 addition & 1 deletion src/qml/InformationDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Item {
height: Math.min(contentHeight, mainWindow.height / 3)
visible: positioningInformationViewEnabled
positionSource: controller.positionSource
antennaHeight: positioningSettings.antennaHeightActivated ? positioningSettings.antennaHeight : -1
antennaHeight: positioningSettings.antennaHeightActivated ? positioningSettings.antennaHeight : 0
}
}

Expand Down

0 comments on commit 5a83f47

Please sign in to comment.