diff --git a/plugins/channelrx/demodadsb/ourairportsdb.h b/plugins/channelrx/demodadsb/ourairportsdb.h index f41e1a2ab..94ddec3df 100644 --- a/plugins/channelrx/demodadsb/ourairportsdb.h +++ b/plugins/channelrx/demodadsb/ourairportsdb.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -84,6 +85,7 @@ struct AirportInformation { FILE *file; QByteArray utfFilename = filename.toUtf8(); + QLocale cLocale(QLocale::C); if ((file = fopen(utfFilename.constData(), "r")) != NULL) { char row[2048]; @@ -170,21 +172,21 @@ struct AirportInformation { latitudeString = p; latitudeLen = strlen(latitudeString)-1; latitudeString[latitudeLen] = '\0'; - latitude = atof(latitudeString); + latitude = cLocale.toFloat(latitudeString); } else if (idx == longitudeCol) { longitudeString = p; longitudeLen = strlen(longitudeString)-1; longitudeString[longitudeLen] = '\0'; - longitude = atof(longitudeString); + longitude = cLocale.toFloat(longitudeString); } else if (idx == elevationCol) { elevationString = p; elevationLen = strlen(elevationString)-1; elevationString[elevationLen] = '\0'; - elevation = atof(elevationString); + elevation = cLocale.toFloat(elevationString); } p = strtok(NULL, ","); idx++; diff --git a/plugins/channelrx/demodvor/navaid.h b/plugins/channelrx/demodvor/navaid.h index 6eaefcce5..0394255af 100644 --- a/plugins/channelrx/demodvor/navaid.h +++ b/plugins/channelrx/demodvor/navaid.h @@ -198,6 +198,7 @@ struct NavAid { FILE *file; QByteArray utfFilename = filename.toUtf8(); + QLocale cLocale(QLocale::C); if ((file = fopen(utfFilename.constData(), "r")) != NULL) { char row[2048]; @@ -298,21 +299,21 @@ struct NavAid { latitudeString = p; latitudeLen = strlen(latitudeString)-1; latitudeString[latitudeLen] = '\0'; - latitude = atof(latitudeString); + latitude = cLocale.toFloat(latitudeString); } else if (idx == longitudeCol) { longitudeString = p; longitudeLen = strlen(longitudeString)-1; longitudeString[longitudeLen] = '\0'; - longitude = atof(longitudeString); + longitude = cLocale.toFloat(longitudeString); } else if (idx == elevationCol) { elevationString = p; elevationLen = strlen(elevationString)-1; elevationString[elevationLen] = '\0'; - elevation = atof(elevationString); + elevation = cLocale.toFloat(elevationString); } else if ((idx == powerCol) && (p[0] == '\"')) { diff --git a/plugins/channelrx/demodvor/vordemodgui.ui b/plugins/channelrx/demodvor/vordemodgui.ui index e5bd844f3..c70091b44 100644 --- a/plugins/channelrx/demodvor/vordemodgui.ui +++ b/plugins/channelrx/demodvor/vordemodgui.ui @@ -392,9 +392,9 @@ 0 - 110 + 80 391 - 140 + 141 @@ -424,6 +424,12 @@ + + + 0 + 140 + + QAbstractItemView::NoEditTriggers diff --git a/plugins/feature/vorlocalizer/navaid.h b/plugins/feature/vorlocalizer/navaid.h index 0dc8bbf35..1ac7419f6 100644 --- a/plugins/feature/vorlocalizer/navaid.h +++ b/plugins/feature/vorlocalizer/navaid.h @@ -197,6 +197,7 @@ struct NavAid { FILE *file; QByteArray utfFilename = filename.toUtf8(); + QLocale cLocale(QLocale::C); if ((file = fopen(utfFilename.constData(), "r")) != NULL) { char row[2048]; @@ -297,21 +298,21 @@ struct NavAid { latitudeString = p; latitudeLen = strlen(latitudeString)-1; latitudeString[latitudeLen] = '\0'; - latitude = atof(latitudeString); + latitude = cLocale.toFloat(latitudeString); } else if (idx == longitudeCol) { longitudeString = p; longitudeLen = strlen(longitudeString)-1; longitudeString[longitudeLen] = '\0'; - longitude = atof(longitudeString); + longitude = cLocale.toFloat(longitudeString); } else if (idx == elevationCol) { elevationString = p; elevationLen = strlen(elevationString)-1; elevationString[elevationLen] = '\0'; - elevation = atof(elevationString); + elevation = cLocale.toFloat(elevationString); } else if ((idx == powerCol) && (p[0] == '\"')) {