Skip to content

Commit

Permalink
Ensure map icon drag "hotspot" is integer
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed Sep 18, 2024
1 parent a13c588 commit 46b4b41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/photini/photinimap.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def new_colours(self):
'RGB', alpha.size, colour)
self._icons[False][active].putalpha(alpha)
self._icons[False][active] = self._icons[False][active].copy()
## self._icons[False][active].resize((100, 100), PIL.Image.NEAREST).show()
self.icons_changed.emit()

def get_pin_as_pixmap(self, pin, active):
Expand Down Expand Up @@ -272,7 +271,7 @@ def __init__(self, parent=None):
self.script_dir = os.path.join(os.path.dirname(__file__), 'data', 'map')
self.drag_icon = self.app.map_icon_factory.get_pin_as_pixmap(True, False)
w, h = self.app.map_icon_factory.get_pin_size(True)
self.drag_hotspot = w / 2, h
self.drag_hotspot = w // 2, h
self.search_string = None
self.map_loaded = 0 # not loaded
self.marker_info = {}
Expand Down

0 comments on commit 46b4b41

Please sign in to comment.