[ios] [qgsquick] fix crash of GPS widget on iOS, see input issue 470

This commit is contained in:
Peter Petrik 2019-10-09 15:50:34 +02:00 committed by Martin Dobias
parent afc598204a
commit 0a71599a04

View File

@ -221,9 +221,9 @@ void QgsQuickPositionKit::onSimulatePositionLongLatRadChanged( QVector<double> s
QgsDebugMsg( QStringLiteral( "Use simulated position around longlat: %1, %2, %3" ).arg( longitude ).arg( latitude ).arg( radius ) );
useSimulatedLocation( longitude, latitude, radius );
}
else
else if ( mIsSimulated )
{
QgsDebugMsg( QStringLiteral( "Unable to set simulated position due to the input errors." ) );
QgsDebugMsg( QStringLiteral( "Switching from simulated to GPS location" ) );
useGpsLocation();
}
}