mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: Unchecked return value
CID 208312 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
8634dcc393
commit
ca7b0017a7
1 changed files with 4 additions and 3 deletions
|
@ -203,9 +203,10 @@ void LocationInformationWidget::acceptChanges()
|
|||
|
||||
if (!ui.diveSiteCoordinates->text().isEmpty()) {
|
||||
double lat, lon;
|
||||
parseGpsText(ui.diveSiteCoordinates->text(), &lat, &lon);
|
||||
currentDs->latitude.udeg = lrint(lat * 1000000.0);
|
||||
currentDs->longitude.udeg = lrint(lon * 1000000.0);
|
||||
if (parseGpsText(ui.diveSiteCoordinates->text(), &lat, &lon)) {
|
||||
currentDs->latitude.udeg = lrint(lat * 1000000.0);
|
||||
currentDs->longitude.udeg = lrint(lon * 1000000.0);
|
||||
}
|
||||
}
|
||||
if (dive_site_is_empty(currentDs)) {
|
||||
LocationInformationModel::instance()->removeRow(get_divesite_idx(currentDs));
|
||||
|
|
Loading…
Add table
Reference in a new issue