diff --git a/.github/workflows/ci-unix.yml b/.github/workflows/ci-unix.yml index 778fefe4b4553..7dcffd56c4e86 100644 --- a/.github/workflows/ci-unix.yml +++ b/.github/workflows/ci-unix.yml @@ -58,13 +58,15 @@ jobs: uses: vmactions/netbsd-vm@v1 id: netbsd-qt5 with: + release: 9.0 # Use sh shell usesh: true prepare: | - /usr/sbin/pkg_add cmake qt5 qxlsx exiv2 nlopt perl5 gettext + /usr/sbin/pkg_add cmake qt5 exiv2 nlopt gettext run: | set -e -x + export PATH=/usr/pkg/qt5/bin:$PATH export DISPLAY=:0 mkdir builds cd builds diff --git a/src/core/StelLocationMgr.cpp b/src/core/StelLocationMgr.cpp index b3d3bc64d127f..6daa2dc8a728d 100644 --- a/src/core/StelLocationMgr.cpp +++ b/src/core/StelLocationMgr.cpp @@ -1084,8 +1084,8 @@ void StelLocationMgr::changeLocationFromGPSQuery(const StelLocation &locin) loc.isUserLocation=true; loc.planetName="Earth"; loc.name=QString("GPS %1%2 %3%4") - .arg(loc.getLatitude()<0?"S":"N").arg(qRound(abs(loc.getLatitude()))) - .arg(loc.getLongitude()<0?"W":"E").arg(qRound(abs(loc.getLongitude()))); + .arg(loc.getLatitude()<0.f?"S":"N").arg(qRound(abs(loc.getLatitude()))) + .arg(loc.getLongitude()<0.f?"W":"E").arg(qRound(abs(loc.getLongitude()))); LandscapeMgr *lMgr=GETSTELMODULE(LandscapeMgr); QString landscapeAutoName; if (lMgr->getFlagLandscapeAutoSelection())