diff options
author | Manuel QuiƱones <manuq@laptop.org> | 2013-05-16 21:15:03 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@localhost.localdomain> | 2013-06-03 19:07:02 (GMT) |
commit | 4f739cbd0338aa9f4e948b531b912a216c85b2f4 (patch) | |
tree | d446ad5f12b982c5878856611ffe1cc90b5e3188 | |
parent | 216a62c9065a4b88f82ade873c02c20bd49ddfeb (diff) |
Forgot a get_parent from the revert commit, dbb6504a
-rw-r--r-- | ImageView.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ImageView.py b/ImageView.py index e2b387a..4b4437d 100644 --- a/ImageView.py +++ b/ImageView.py @@ -323,7 +323,7 @@ class ImageViewer(Gtk.DrawingArea, Gtk.Scrollable): self._zoomtouch_scale = scale # Set target point to the relative coordinates of this view. - alloc = self.get_parent().get_allocation() + alloc = self.get_allocation() self._target_point = (center[1] - alloc.x, center[2] - alloc.y) self.queue_draw() |