From d8bea304f828ed02f5f1984ae1245b1074c82830 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 5 May 2013 02:13:19 +0200 Subject: [PATCH] Added a simple copy function for cursors. --- manga/lib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manga/lib.py b/manga/lib.py index 52f75ea..e7c531c 100644 --- a/manga/lib.py +++ b/manga/lib.py @@ -134,7 +134,10 @@ class imgstream(object): class cursor(object): def __init__(self, ob): - self.cur = self.descend(ob) + if isinstance(ob, cursor): + self.cur = ob.cur + else: + self.cur = self.descend(ob) def descend(self, ob): while isinstance(ob, pagelist): -- 2.11.0