diff --git a/sw/ground_segment/cockpit/map2d.ml b/sw/ground_segment/cockpit/map2d.ml index cd7c9586aa..94b19fcddb 100644 --- a/sw/ground_segment/cockpit/map2d.ml +++ b/sw/ground_segment/cockpit/map2d.ml @@ -724,8 +724,8 @@ let _ = (* Loading an initial map *) if !geo_ref <> "" then - set_georef_if_none geomap (Latlong.of_string !geo_ref) - else if !map_file <> "" then begin + set_georef_if_none geomap (Latlong.of_string !geo_ref); + if !map_file <> "" then begin let xml_map_file = if !map_file.[0] <> '/' then Filename.concat default_path_maps !map_file else !map_file in display_map geomap xml_map_file end;