Skip to content

Commit

Permalink
ensure --centre zoom is appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
stronnag committed Jan 3, 2025
1 parent 5d94b82 commit e3a7b7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mwp/mwp-clioptions.vala
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ namespace Cli {

if(Mwp.llstr != null) {
LLparse.llparse(Mwp.llstr, ref Mwp.clat, ref Mwp.clon, ref zm);
if (zm == -1) {
zm = Mwp.conf.zoom;
}
MapUtils.centre_on(Mwp.clat, Mwp.clon, zm);
Mwp.set_pos_label(Mwp.clat, Mwp.clon);
}
Expand Down

0 comments on commit e3a7b7f

Please sign in to comment.