Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
fix small bug when saving the map image
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Blacher <[email protected]>
  • Loading branch information
Benjamin Blacher committed Feb 20, 2022
1 parent 7eed81d commit 8397c01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO don't spawn a terminal window
# TODO check screen res for map view
# TODO allow zoom & pan on map view
# TODO close all child windows on main window close
Expand Down Expand Up @@ -95,9 +94,10 @@ def __init__(self):
def save_map(self):
savepath = QFileDialog.getSaveFileName(self, "Save Location", QDir.homePath(), "*.svg")
path = savepath[0]
if not path[-4:] == ".svg":
path = path + ".svg"
copy(os.getcwd() + "/temp/map_tmp.svg", path)
if not path == "":
if not path[-4:] == ".svg":
path = path + ".svg"
copy(os.getcwd() + "/temp/map_tmp.svg", path)

def map_satellite(self):
context.set_tile_provider(staticmaps.tile_provider_ArcGISWorldImagery)
Expand Down

0 comments on commit 8397c01

Please sign in to comment.