mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
General GCC compilation fixes
This commit is contained in:
parent
c7aba95233
commit
023688b746
19 changed files with 57 additions and 53 deletions
|
|
@ -502,8 +502,8 @@ void MapWidget::SetMapLocation(double latitude,
|
|||
double longitude,
|
||||
bool updateRadarSite)
|
||||
{
|
||||
if (p->map_ != nullptr && p->prevLatitude_ != latitude ||
|
||||
p->prevLongitude_ != longitude)
|
||||
if (p->map_ != nullptr &&
|
||||
(p->prevLatitude_ != latitude || p->prevLongitude_ != longitude))
|
||||
{
|
||||
// Update the map location
|
||||
p->map_->setCoordinate({latitude, longitude});
|
||||
|
|
@ -787,6 +787,9 @@ void MapWidget::mapChanged(QMapLibreGL::Map::MapChange mapChange)
|
|||
case QMapLibreGL::Map::MapChangeDidFinishLoadingStyle:
|
||||
AddLayers();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue