... | ... |
@@ -645,11 +645,12 @@ class DotWindow(gtk.Window): |
645 | 645 |
def get_url(self, x, y): |
646 | 646 |
rect = self.area.get_allocation() |
647 | 647 |
x -= 0.5*rect.width |
648 |
- y = 0.5*rect.height - y |
|
648 |
+ y -= 0.5*rect.height |
|
649 | 649 |
x /= self.zoom_ratio |
650 | 650 |
y /= self.zoom_ratio |
651 | 651 |
x += self.x |
652 | 652 |
y += self.y |
653 |
+ y = self.height - y |
|
653 | 654 |
|
654 | 655 |
for hyperlink in self.hyperlinks: |
655 | 656 |
if hyperlink.hit(x, y): |