diff --git a/tuhi/gui/drawing.py b/tuhi/gui/drawing.py index b5f7bc2..e70097a 100644 --- a/tuhi/gui/drawing.py +++ b/tuhi/gui/drawing.py @@ -35,14 +35,14 @@ class Drawing(Gtk.EventBox): btn_rotate_left = Gtk.Template.Child() btn_rotate_right = Gtk.Template.Child() - def __init__(self, json_data, *args, **kwargs): + def __init__(self, json_data, zoom, *args, **kwargs): super().__init__() self.orientation = Config().orientation Config().connect('notify::orientation', self._on_orientation_changed) DATA_PATH.mkdir(parents=True, exist_ok=True) self.json_data = json_data - self._zoom = 0 + self._zoom = zoom self.refresh() # sets self.svg self.timestamp = self.svg.timestamp diff --git a/tuhi/gui/drawingperspective.py b/tuhi/gui/drawingperspective.py index 92d0df1..b9f3f19 100644 --- a/tuhi/gui/drawingperspective.py +++ b/tuhi/gui/drawingperspective.py @@ -91,7 +91,7 @@ class DrawingPerspective(Gtk.Stack): if ts in self.known_drawings: continue - drawing = Drawing(js) + drawing = Drawing(js, self._zoom) self.known_drawings[ts] = drawing # Now pick the right monthly flowbox to insert into